home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / chat / colirc.0 < prev    next >
Encoding:
Text File  |  1996-11-17  |  74.7 KB  |  2,053 lines

  1. diff --unified --recursive --new-file ircii-2.8.2/Makefile colirc/Makefile
  2. --- ircii-2.8.2/Makefile    Wed Dec 31 16:00:00 1969
  3. +++ colirc/Makefile    Fri Jun 14 02:44:53 1996
  4. @@ -0,0 +1,252 @@
  5. +# Generated automatically from Makefile.in by configure.
  6. +# IRC II - written by Michael Sandrof
  7. +# Copyright (c) 1991 - All Rights Reserved
  8. +# Modified by Matthew Green, 1993.
  9. +#
  10. +# @(#)$Id: Makefile.in,v 1.27 1995/01/05 06:40:23 mrg stable $
  11. +
  12. +# targets recognised by this makefile:
  13. +#   all, everything    - compiles ircii, ircserv, ircflush and wserv
  14. +#   ircserv        - compiles ircserv
  15. +#   ircflush        - compiles ircflush
  16. +#   wserv        - compiles wserv
  17. +#   install        - installs ircii, ircserv, ircflush and wserv the scripts
  18. +#              and the translation tables.
  19. +#   installirc        - installs ircii
  20. +#   installserv        - installs ircserv
  21. +#   installwserv    - installs wserv
  22. +#   installflush    - installs ircflush
  23. +#   installscript     - installs the scripts
  24. +#   installtranslation    - installs the translation tables
  25. +#   installeverything   - all of the above
  26. +#   clean               - remove all .o files, core, and binaries
  27. +#   disclean            - remove all files geneated by compilation/installation.
  28. +
  29. +prefix = /usr/local
  30. +exec_prefix = ${prefix}
  31. +bindir = ${exec_prefix}/bin
  32. +
  33. +# Where the ircII binary will be installed.
  34. +# 'make install' will compile and install the program
  35. +INSTALL_IRC = $(bindir)/colirc
  36. +
  37. +# Where the ircII library will be.  Generally this is the place that
  38. +# you put the scripts, help pages and translation tables.  It is
  39. +# very important that you set this correctly.
  40. +IRCLIB = ${prefix}/lib/irc
  41. +
  42. +# Set this to the lex you want to use, and if they lex uses a library.
  43. +
  44. +LEX = flex
  45. +LEXLIB = -lfl
  46. +
  47. +CC = gcc
  48. +DEFS = -DHAVE_CONFIG_H
  49. +LIBS = -ltermcap 
  50. +
  51. +# Set this to -g if you want to be able to debug the client, otherwise
  52. +# use -O to have the compiler do some optimization instead.
  53. +CFLAGS = -g -O
  54. +
  55. +# Set this to -s if you want the binary to be striped.
  56. +LDFLAGS = 
  57. +
  58. +# these are legacy things from ircii 2.2 that haven't yet been
  59. +# handled with autoconf.
  60. +
  61. +# For Apollo systems (10.2 and upwards) use the following with BSD defaults:
  62. +# DEFS = -Asys,bsd4.3
  63. +
  64. +# Use one of the following for mips systems:
  65. +# Choice 1, if your system has the wait3() call
  66. +# DEFS = -systype bsd43
  67. +# Choice 2, if your system has the wait2() call
  68. +# DEFS = -systype bsd43 -Duse_wait2
  69. +#
  70. +# Or, if you only have sysv installed, use one of the following:
  71. +# DEFS = -DMIPS_SYSV
  72. +# DEFS = -DMIPS_SYSV -Duse_wait2
  73. +
  74. +## You probably don't need to change anything below this line
  75. +
  76. +# Uncomment the following if you want a secure IRC which binds to a
  77. +# privileged port. This feature is completely useless in the current
  78. +# IRC environment, but in the future some servers may use privileged
  79. +# port systems to verify users connecting to them. The value of
  80. +# PRIV_PORT determines the minimum port number to use.
  81. +# If you modify these (including uncommenting them) you will need to
  82. +# touch config.h
  83. +#
  84. +# If you are on a system where test-suid works, you can simply define
  85. +# PP_DEFS to be PRIV_PORT_ULC and irc will change effective UID back
  86. +# to a normal user immediately, and change to root when binding a port.
  87. +# This feature is undocumented, but is known to work on Sun, MIPS and
  88. +# Apollo (Cos we've tested them already).
  89. +# PP_DEFINES = -DPRIV_PORT=667
  90. +# PP_OBJS = file.o
  91. +# PP_DEFINES = -DPRIV_PORT_ULC
  92. +
  93. +# Full path of the directory for ircII help files.  
  94. +# The help files are not within the source distribution, if you don't have
  95. +# them and want them, check out your nearest ircII archive.
  96. +# You may comment HELP_DIR, then the ircIIhelp service will be used.
  97. +# If you don't comment it out and want to use the IRCIIHelp service anyway,
  98. +# you must make sure that the directory doesn't exist.
  99. +HELP_DIR = $(IRCLIB)/help
  100. +
  101. +# Full path of the directory in which to copy the
  102. +# IRCII scripts supplied with the code.  These scripts
  103. +# may be loaded by using the LOAD command in IRCII.
  104. +INSTALL_SCRIPT = $(IRCLIB)/script
  105. +
  106. +# Default setting for IRC_PATH where irc will look for
  107. +# its script files if the environment variable is undefined.
  108. +# Usually, this should contain the same path as used for INSTALL_SCRIPT in
  109. +# the Makefile, but it can contain multiple path elements
  110. +# separated by colons. The path MUST lead to an existing directory,
  111. +# because the 'global' script is expected to be found there.
  112. +IRC_PATH = ~/.irc:$(INSTALL_SCRIPT):.
  113. +
  114. +# Path for TRANSLATION variable.
  115. +TRANS_PATH = $(IRCLIB)/translation
  116. +
  117. +# Set the next line to the full path for installation of the ircserv program
  118. +# if you wish to use it. 
  119. +INSTALL_IRCSERV = $(bindir)/ircserv
  120. +
  121. +# This little program is necessary to have an interactive shell
  122. +# in a window of ircII. The 'shell' script uses it, so also update
  123. +# the path in there, if you want to enable this.
  124. +INSTALL_IRCFLUSH = $(bindir)/ircflush
  125. +
  126. +# This program allows you to use screen/xterm's to put new irc windows
  127. +# on new screen/xterm windows.
  128. +INSTALL_WSERV = $(bindir)/wserv
  129. +
  130. +## You shouldn't have to change anything below here
  131. +
  132. +srcdir = .
  133. +
  134. +RM = rm -f
  135. +LN = ln -s
  136. +CP = cp
  137. +MV = mv
  138. +INSTALL = ./bsdinstall -c -m 755
  139. +INSTALL_DATA = ../bsdinstall -c -m 644
  140. +
  141. +VERSION = 2.8.2
  142. +
  143. +SHELL = /bin/sh
  144. +MAKE = make $(MFLAGS)
  145. +MFLAGS ='CC=$(CC)'                    \
  146. +    'CFLAGS=$(CFLAGS)'                \
  147. +    'DEFS=$(DEFS)'                    \
  148. +    'HELP_DIR=$(HELP_DIR)'                \
  149. +    'INSTALL_IRC=$(INSTALL_IRC)'            \
  150. +    'INSTALL_IRCSERV=$(INSTALL_IRCSERV)'        \
  151. +    'INSTALL_WSERV=$(INSTALL_WSERV)'        \
  152. +    'IRCLIB=$(IRCLIB)'                \
  153. +    'IRCPATH=$(IRC_PATH)'                \
  154. +    'LDFLAGS=$(LDFLAGS)'                \
  155. +    'LEX=$(LEX)'                    \
  156. +    'LEXLIB=$(LEXLIB)'                \
  157. +    'LIBS=$(LIBS)'                    \
  158. +    'LN=$(LN)'                    \
  159. +    'PP_DEFS=$(PP_DEFS)'                \
  160. +    'PP_OBJS=$(PP_OBJS)'                \
  161. +    'PPS_DEFS=$(PPS_DEFS)'                \
  162. +    'RM=$(RM)'                    \
  163. +    'TRANS_DIR=$(TRANS_PATH)'
  164. +
  165. +all: irc ircserv ircflush wserv
  166. +
  167. +install: all installbin installscript installtranslation
  168. +
  169. +irc: source/Makefile Makefile
  170. +    @cd source; $(MAKE) all
  171. +
  172. +installeverything: install installflush installserv installwserv \
  173. +    installscript installtranslation
  174. +
  175. +everything: all ircflush ircserv wserv
  176. +
  177. +ircserv: source/Makefile
  178. +    @cd source; $(MAKE) ircserv
  179. +
  180. +ircflush: source/ircflush.c source/Makefile
  181. +    @cd source; $(MAKE) ircflush
  182. +
  183. +wserv: source/wserv.c source/term.c source/Makefile
  184. +    @cd source; $(MAKE) wserv
  185. +
  186. +installbin: installirc installserv installflush installwserv
  187. +
  188. +installirc: irc installdirs
  189. +    $(INSTALL) source/colirc $(INSTALL_IRC)-$(VERSION)
  190. +    @if test -f $(INSTALL_IRC).old; then $(RM) $(INSTALL_IRC).old; fi
  191. +    @if test -f $(INSTALL_IRC); then $(MV) $(INSTALL_IRC) $(INSTALL_IRC).old; fi
  192. +    $(RM) $(INSTALL_IRC)
  193. +    $(LN) $(INSTALL_IRC)-$(VERSION) $(INSTALL_IRC)
  194. +
  195. +installscript: installdirs
  196. +    -chmod -x script/*
  197. +    -@(                                \
  198. +        if test -f $(INSTALL_SCRIPT)/local; then        \
  199. +            if test -f script/local; then             \
  200. +                $(MV) script/local script/local.orig;    \
  201. +            fi;                        \
  202. +        fi                            \
  203. +    )
  204. +    cd script; for i in *; do $(INSTALL_DATA) $$i $(INSTALL_SCRIPT); done
  205. +
  206. +installtranslation: installdirs
  207. +    -chmod -x translation/*
  208. +    cd translation; for i in *; do $(INSTALL_DATA) $$i $(TRANS_PATH); done
  209. +
  210. +installserv: ircserv installdirs
  211. +    $(INSTALL) source/ircserv $(INSTALL_IRCSERV)
  212. +
  213. +installflush: ircflush installdirs
  214. +    $(INSTALL) source/ircflush $(INSTALL_IRCFLUSH)
  215. +
  216. +installwserv: wserv installdirs
  217. +    $(INSTALL) source/wserv $(INSTALL_WSERV)
  218. +
  219. +installhelp:
  220. +    @echo Help files are no more within this package.  You
  221. +    @echo can probably get them from the same place you got
  222. +    @echo this source from.
  223. +
  224. +installdirs:
  225. +    umask 022; ./mkinstalldirs $(IRCLIB) $(bindir) $(TRANS_PATH) $(INSTALL_SCRIPT)
  226. +
  227. +clena clean:
  228. +    @-if test -f source/Makefile; then cd source; $(MAKE) clean; fi
  229. +
  230. +distclean cleandir realclean: clean
  231. +    $(RM) Makefile source/Makefile source/sig.inc config.status config.cache config.log easyinst.status include/defs.h
  232. +
  233. +lint:
  234. +    @if test -f source/Makefile; then cd source; $(MAKE) lint; fi
  235. +
  236. +autoconf: configure
  237. +
  238. +configure: configure.in acconfig.h
  239. +    autoconf
  240. +
  241. +autoheader: include/defs.h.in
  242. +
  243. +include/defs.h.in: configure.in acconfig.h
  244. +    autoheader
  245. +
  246. +config_h:
  247. +    $(RM) include/config.h
  248. +    ln include/config.h.dist include/config.h
  249. +
  250. +export: distclean autoconf autoheader config_h
  251. +
  252. +dist: export
  253. +    ( \
  254. +        cd ..; \
  255. +        tar --exclude .CVS -z -c -f ircii-$(VERSION).tar.z ircii; \
  256. +    )
  257. diff --unified --recursive --new-file ircii-2.8.2/Makefile.in colirc/Makefile.in
  258. --- ircii-2.8.2/Makefile.in    Wed Jan  4 22:40:23 1995
  259. +++ colirc/Makefile.in    Tue Apr 16 15:56:55 1996
  260. @@ -27,7 +27,7 @@
  261.  
  262.  # Where the ircII binary will be installed.
  263.  # 'make install' will compile and install the program
  264. -INSTALL_IRC = $(bindir)/irc
  265. +INSTALL_IRC = $(bindir)/colirc
  266.  
  267.  # Where the ircII library will be.  Generally this is the place that
  268.  # you put the scripts, help pages and translation tables.  It is
  269. @@ -181,7 +181,7 @@
  270.  installbin: installirc installserv installflush installwserv
  271.  
  272.  installirc: irc installdirs
  273. -    $(INSTALL) source/irc $(INSTALL_IRC)-$(VERSION)
  274. +    $(INSTALL) source/colirc $(INSTALL_IRC)-$(VERSION)
  275.      @if test -f $(INSTALL_IRC).old; then $(RM) $(INSTALL_IRC).old; fi
  276.      @if test -f $(INSTALL_IRC); then $(MV) $(INSTALL_IRC) $(INSTALL_IRC).old; fi
  277.      $(RM) $(INSTALL_IRC)
  278. diff --unified --recursive --new-file ircii-2.8.2/README.colirc colirc/README.colirc
  279. --- ircii-2.8.2/README.colirc    Wed Dec 31 16:00:00 1969
  280. +++ colirc/README.colirc    Sun Jun 23 05:16:37 1996
  281. @@ -0,0 +1,28 @@
  282. +colirc patch 0.2 <ircii 2.8.2>
  283. +bitching and whatnot goes to escrafrd@oz.net <MadHacker on LinuxNet>
  284. +
  285. +/color to change color of nicks
  286. +/set colorline on to turn on full line color <default off>
  287. +/rcolor to set colors picked to colorize nicks
  288. +
  289. +_USAGE_
  290. +
  291. +colors: black red green brown blue purple cyan white none
  292. +for bright colors prefix b to the color <bred for bright red, etc>
  293. +
  294. +/color nick color
  295. +/rcolor +color or -color <-all and +all can be used>
  296. +/rcolor can accept multiple args </rcolor -all +red +green +blue>
  297. +
  298. +notes...
  299. +
  300. +if a nick does not have a color set to it<with /color> then it will have the
  301. +color that hasn't been used in the longest time assigned to it. the colors 
  302. +assigned can be picked with /rcolor. default is all colors except black.
  303. +
  304. +if you have colorline set on, the whole line said by a person will be the
  305. +color of thier nick.
  306. +
  307. +you can change the color of channels if you are in multiple channels at
  308. +once. </set #channel green>
  309. +
  310. diff --unified --recursive --new-file ircii-2.8.2/config.cache colirc/config.cache
  311. --- ircii-2.8.2/config.cache    Wed Dec 31 16:00:00 1969
  312. +++ colirc/config.cache    Tue Apr 16 15:58:01 1996
  313. @@ -0,0 +1,64 @@
  314. +# This file is a shell script that caches the results of configure
  315. +# tests run on this system so they can be shared between configure
  316. +# scripts and configure runs.  It is not useful on other systems.
  317. +# If it contains results you don't want to keep, you may remove or edit it.
  318. +#
  319. +# By default, configure uses ./config.cache as the cache file,
  320. +# creating it if it does not exist already.  You can give configure
  321. +# the --cache-file=FILE option to use a different cache file; that is
  322. +# what configure does when it calls configure scripts in
  323. +# subdirectories, so they share the cache.
  324. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  325. +# config.status only pays attention to the cache file if you give it the
  326. +# --recheck option to rerun configure.
  327. +#
  328. +ac_cv_c_cross=${ac_cv_c_cross='no'}
  329. +ac_cv_func_fchmod=${ac_cv_func_fchmod='yes'}
  330. +ac_cv_func_getcwd=${ac_cv_func_getcwd='yes'}
  331. +ac_cv_func_getpgid=${ac_cv_func_getpgid='yes'}
  332. +ac_cv_func_getsid=${ac_cv_func_getsid='no'}
  333. +ac_cv_func_memmove=${ac_cv_func_memmove='yes'}
  334. +ac_cv_func_scandir=${ac_cv_func_scandir='yes'}
  335. +ac_cv_func_select=${ac_cv_func_select='yes'}
  336. +ac_cv_func_setsid=${ac_cv_func_setsid='yes'}
  337. +ac_cv_func_sigaction=${ac_cv_func_sigaction='yes'}
  338. +ac_cv_func_strerror=${ac_cv_func_strerror='yes'}
  339. +ac_cv_func_uname=${ac_cv_func_uname='yes'}
  340. +ac_cv_header_dirent_dirent_h=${ac_cv_header_dirent_dirent_h='yes'}
  341. +ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h='yes'}
  342. +ac_cv_header_limits_h=${ac_cv_header_limits_h='yes'}
  343. +ac_cv_header_memory_h=${ac_cv_header_memory_h='yes'}
  344. +ac_cv_header_netdb_h=${ac_cv_header_netdb_h='yes'}
  345. +ac_cv_header_stdarg_h=${ac_cv_header_stdarg_h='yes'}
  346. +ac_cv_header_stdc=${ac_cv_header_stdc='yes'}
  347. +ac_cv_header_string_h=${ac_cv_header_string_h='yes'}
  348. +ac_cv_header_sys_fcntl_h=${ac_cv_header_sys_fcntl_h='yes'}
  349. +ac_cv_header_sys_file_h=${ac_cv_header_sys_file_h='yes'}
  350. +ac_cv_header_sys_ptem_h=${ac_cv_header_sys_ptem_h='no'}
  351. +ac_cv_header_sys_select_h=${ac_cv_header_sys_select_h='no'}
  352. +ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h='yes'}
  353. +ac_cv_header_sys_twg_config_h=${ac_cv_header_sys_twg_config_h='no'}
  354. +ac_cv_header_sys_un_h=${ac_cv_header_sys_un_h='yes'}
  355. +ac_cv_header_sys_wait_h=${ac_cv_header_sys_wait_h='yes'}
  356. +ac_cv_header_time=${ac_cv_header_time='yes'}
  357. +ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'}
  358. +ac_cv_lib_dgc=${ac_cv_lib_dgc='no'}
  359. +ac_cv_lib_dir=${ac_cv_lib_dir='no'}
  360. +ac_cv_lib_fl=${ac_cv_lib_fl='yes'}
  361. +ac_cv_lib_inet=${ac_cv_lib_inet='no'}
  362. +ac_cv_lib_nsl=${ac_cv_lib_nsl='no'}
  363. +ac_cv_lib_resolv=${ac_cv_lib_resolv='no'}
  364. +ac_cv_lib_socket=${ac_cv_lib_socket='no'}
  365. +ac_cv_lib_sun=${ac_cv_lib_sun='no'}
  366. +ac_cv_lib_termcap=${ac_cv_lib_termcap='yes'}
  367. +ac_cv_prog_CC=${ac_cv_prog_CC='gcc'}
  368. +ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
  369. +ac_cv_prog_LEX=${ac_cv_prog_LEX='flex'}
  370. +ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'}
  371. +ac_cv_prog_gcc_g=${ac_cv_prog_gcc_g='yes'}
  372. +ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional='no'}
  373. +ac_cv_type_mode_t=${ac_cv_type_mode_t='yes'}
  374. +ac_cv_type_pid_t=${ac_cv_type_pid_t='yes'}
  375. +ac_cv_type_signal=${ac_cv_type_signal='void'}
  376. +ac_cv_type_size_t=${ac_cv_type_size_t='yes'}
  377. +ac_cv_type_uid_t=${ac_cv_type_uid_t='yes'}
  378. diff --unified --recursive --new-file ircii-2.8.2/config.log colirc/config.log
  379. --- ircii-2.8.2/config.log    Wed Dec 31 16:00:00 1969
  380. +++ colirc/config.log    Fri Jun 14 02:44:43 1996
  381. @@ -0,0 +1,4 @@
  382. +This file contains any messages produced by compilers while
  383. +running configure, to aid debugging if configure makes a mistake.
  384. +
  385. +configure:2572: `#include' expects "FILENAME" or <FILENAME>
  386. diff --unified --recursive --new-file ircii-2.8.2/config.status colirc/config.status
  387. --- ircii-2.8.2/config.status    Wed Dec 31 16:00:00 1969
  388. +++ colirc/config.status    Fri Jun 14 02:44:52 1996
  389. @@ -0,0 +1,279 @@
  390. +#! /bin/sh
  391. +# Generated automatically by configure.
  392. +# Run this file to recreate the current configuration.
  393. +# This directory was configured as follows,
  394. +# on host dead:
  395. +#
  396. +# ./configure 
  397. +#
  398. +# Compiler output produced by configure, useful for debugging
  399. +# configure, is in ./config.log if it exists.
  400. +
  401. +ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
  402. +for ac_option
  403. +do
  404. +  case "$ac_option" in
  405. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  406. +    echo "running ${CONFIG_SHELL-/bin/sh} ./configure  --no-create --no-recursion"
  407. +    exec ${CONFIG_SHELL-/bin/sh} ./configure  --no-create --no-recursion ;;
  408. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  409. +    echo "./config.status generated by autoconf version 2.2"
  410. +    exit 0 ;;
  411. +  -help | --help | --hel | --he | --h)
  412. +    echo "$ac_cs_usage"; exit 0 ;;
  413. +  *) echo "$ac_cs_usage"; exit 1 ;;
  414. +  esac
  415. +done
  416. +
  417. +ac_given_srcdir=.
  418. +
  419. +trap 'rm -fr Makefile source/Makefile include/defs.h conftest*; exit 1' 1 2 15
  420. +
  421. +# Protect against being on the right side of a sed subst in config.status. 
  422. +sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g; 
  423. + s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  424. +/^[     ]*VPATH[     ]*=[^:]*$/d
  425. +
  426. +s%@CFLAGS@%-g -O%g
  427. +s%@CPPFLAGS@%%g
  428. +s%@CXXFLAGS@%%g
  429. +s%@DEFS@%-DHAVE_CONFIG_H%g
  430. +s%@LDFLAGS@%%g
  431. +s%@LIBS@%-ltermcap %g
  432. +s%@exec_prefix@%${prefix}%g
  433. +s%@prefix@%/usr/local%g
  434. +s%@program_transform_name@%s,x,x,%g
  435. +s%@VERSION@%2.8.2%g
  436. +s%@CC@%gcc%g
  437. +s%@CPP@%gcc -E%g
  438. +s%@LEX@%flex%g
  439. +s%@LEXLIB@%-lfl%g
  440. +s%@RM@%rm -f%g
  441. +s%@LN@%ln -s%g
  442. +s%@IRCLIB@%${prefix}/lib/irc%g
  443. +s%@bindir@%${exec_prefix}/bin%g
  444. +
  445. +CEOF
  446. +
  447. +CONFIG_FILES=${CONFIG_FILES-"Makefile source/Makefile"}
  448. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  449. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  450. +  case "$ac_file" in
  451. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  452. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  453. +  *) ac_file_in="${ac_file}.in" ;;
  454. +  esac
  455. +
  456. +  # Adjust relative srcdir, etc. for subdirectories.
  457. +
  458. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  459. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  460. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  461. +    # The file is in a subdirectory.
  462. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  463. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  464. +    # A "../" for each directory in $ac_dir_suffix.
  465. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  466. +  else
  467. +    ac_dir_suffix= ac_dots=
  468. +  fi
  469. +
  470. +  case "$ac_given_srcdir" in
  471. +  .)  srcdir=.
  472. +      if test -z "$ac_dots"; then top_srcdir=.
  473. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  474. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  475. +  *) # Relative path.
  476. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  477. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  478. +  esac
  479. +
  480. +  echo creating "$ac_file"
  481. +  rm -f "$ac_file"
  482. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  483. +  case "$ac_file" in
  484. +  *Makefile*) ac_comsub="1i\\
  485. +# $configure_input" ;;
  486. +  *) ac_comsub= ;;
  487. +  esac
  488. +  sed -e "$ac_comsub
  489. +s%@configure_input@%$configure_input%g
  490. +s%@srcdir@%$srcdir%g
  491. +s%@top_srcdir@%$top_srcdir%g
  492. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  493. +fi; done
  494. +rm -f conftest.subs
  495. +
  496. +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  497. +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  498. +#
  499. +# ac_d sets the value in "#define NAME VALUE" lines.
  500. +ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  501. +ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  502. +ac_dC='\3'
  503. +ac_dD='%g'
  504. +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  505. +ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  506. +ac_uB='\([     ]\)%\1#\2define\3'
  507. +ac_uC=' '
  508. +ac_uD='\4%g'
  509. +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  510. +ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  511. +ac_eB='$%\1#\2define\3'
  512. +ac_eC=' '
  513. +ac_eD='%g'
  514. +
  515. +CONFIG_HEADERS=${CONFIG_HEADERS-"include/defs.h"}
  516. +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  517. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  518. +  case "$ac_file" in
  519. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  520. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  521. +  *) ac_file_in="${ac_file}.in" ;;
  522. +  esac
  523. +
  524. +  echo creating $ac_file
  525. +
  526. +  rm -f conftest.frag conftest.in conftest.out
  527. +  cp $ac_given_srcdir/$ac_file_in conftest.in
  528. +
  529. +  cat > conftest.frag <<CEOF
  530. +${ac_dA}HAVE_SYS_UN_H${ac_dB}HAVE_SYS_UN_H${ac_dC}1${ac_dD}
  531. +${ac_uA}HAVE_SYS_UN_H${ac_uB}HAVE_SYS_UN_H${ac_uC}1${ac_uD}
  532. +${ac_eA}HAVE_SYS_UN_H${ac_eB}HAVE_SYS_UN_H${ac_eC}1${ac_eD}
  533. +${ac_dA}HAVE_SYS_FCNTL_H${ac_dB}HAVE_SYS_FCNTL_H${ac_dC}1${ac_dD}
  534. +${ac_uA}HAVE_SYS_FCNTL_H${ac_uB}HAVE_SYS_FCNTL_H${ac_uC}1${ac_uD}
  535. +${ac_eA}HAVE_SYS_FCNTL_H${ac_eB}HAVE_SYS_FCNTL_H${ac_eC}1${ac_eD}
  536. +${ac_dA}HAVE_SYS_FILE_H${ac_dB}HAVE_SYS_FILE_H${ac_dC}1${ac_dD}
  537. +${ac_uA}HAVE_SYS_FILE_H${ac_uB}HAVE_SYS_FILE_H${ac_uC}1${ac_uD}
  538. +${ac_eA}HAVE_SYS_FILE_H${ac_eB}HAVE_SYS_FILE_H${ac_eC}1${ac_eD}
  539. +${ac_dA}HAVE_SYS_TIME_H${ac_dB}HAVE_SYS_TIME_H${ac_dC}1${ac_dD}
  540. +${ac_uA}HAVE_SYS_TIME_H${ac_uB}HAVE_SYS_TIME_H${ac_uC}1${ac_uD}
  541. +${ac_eA}HAVE_SYS_TIME_H${ac_eB}HAVE_SYS_TIME_H${ac_eC}1${ac_eD}
  542. +CEOF
  543. +  sed -f conftest.frag conftest.in > conftest.out
  544. +  rm -f conftest.in
  545. +  mv conftest.out conftest.in
  546. +
  547. +  cat > conftest.frag <<CEOF
  548. +${ac_dA}HAVE_SYS_WAIT_H${ac_dB}HAVE_SYS_WAIT_H${ac_dC}1${ac_dD}
  549. +${ac_uA}HAVE_SYS_WAIT_H${ac_uB}HAVE_SYS_WAIT_H${ac_uC}1${ac_uD}
  550. +${ac_eA}HAVE_SYS_WAIT_H${ac_eB}HAVE_SYS_WAIT_H${ac_eC}1${ac_eD}
  551. +${ac_dA}HAVE_STDARG_H${ac_dB}HAVE_STDARG_H${ac_dC}1${ac_dD}
  552. +${ac_uA}HAVE_STDARG_H${ac_uB}HAVE_STDARG_H${ac_uC}1${ac_uD}
  553. +${ac_eA}HAVE_STDARG_H${ac_eB}HAVE_STDARG_H${ac_eC}1${ac_eD}
  554. +${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
  555. +${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
  556. +${ac_eA}HAVE_UNISTD_H${ac_eB}HAVE_UNISTD_H${ac_eC}1${ac_eD}
  557. +${ac_dA}HAVE_FCNTL_H${ac_dB}HAVE_FCNTL_H${ac_dC}1${ac_dD}
  558. +${ac_uA}HAVE_FCNTL_H${ac_uB}HAVE_FCNTL_H${ac_uC}1${ac_uD}
  559. +${ac_eA}HAVE_FCNTL_H${ac_eB}HAVE_FCNTL_H${ac_eC}1${ac_eD}
  560. +CEOF
  561. +  sed -f conftest.frag conftest.in > conftest.out
  562. +  rm -f conftest.in
  563. +  mv conftest.out conftest.in
  564. +
  565. +  cat > conftest.frag <<CEOF
  566. +${ac_dA}HAVE_STRING_H${ac_dB}HAVE_STRING_H${ac_dC}1${ac_dD}
  567. +${ac_uA}HAVE_STRING_H${ac_uB}HAVE_STRING_H${ac_uC}1${ac_uD}
  568. +${ac_eA}HAVE_STRING_H${ac_eB}HAVE_STRING_H${ac_eC}1${ac_eD}
  569. +${ac_dA}HAVE_MEMORY_H${ac_dB}HAVE_MEMORY_H${ac_dC}1${ac_dD}
  570. +${ac_uA}HAVE_MEMORY_H${ac_uB}HAVE_MEMORY_H${ac_uC}1${ac_uD}
  571. +${ac_eA}HAVE_MEMORY_H${ac_eB}HAVE_MEMORY_H${ac_eC}1${ac_eD}
  572. +${ac_dA}HAVE_NETDB_H${ac_dB}HAVE_NETDB_H${ac_dC}1${ac_dD}
  573. +${ac_uA}HAVE_NETDB_H${ac_uB}HAVE_NETDB_H${ac_uC}1${ac_uD}
  574. +${ac_eA}HAVE_NETDB_H${ac_eB}HAVE_NETDB_H${ac_eC}1${ac_eD}
  575. +${ac_dA}HAVE_LIMITS_H${ac_dB}HAVE_LIMITS_H${ac_dC}1${ac_dD}
  576. +${ac_uA}HAVE_LIMITS_H${ac_uB}HAVE_LIMITS_H${ac_uC}1${ac_uD}
  577. +${ac_eA}HAVE_LIMITS_H${ac_eB}HAVE_LIMITS_H${ac_eC}1${ac_eD}
  578. +CEOF
  579. +  sed -f conftest.frag conftest.in > conftest.out
  580. +  rm -f conftest.in
  581. +  mv conftest.out conftest.in
  582. +
  583. +  cat > conftest.frag <<CEOF
  584. +${ac_dA}HAVE_SETSID${ac_dB}HAVE_SETSID${ac_dC}1${ac_dD}
  585. +${ac_uA}HAVE_SETSID${ac_uB}HAVE_SETSID${ac_uC}1${ac_uD}
  586. +${ac_eA}HAVE_SETSID${ac_eB}HAVE_SETSID${ac_eC}1${ac_eD}
  587. +${ac_dA}HAVE_GETPGID${ac_dB}HAVE_GETPGID${ac_dC}1${ac_dD}
  588. +${ac_uA}HAVE_GETPGID${ac_uB}HAVE_GETPGID${ac_uC}1${ac_uD}
  589. +${ac_eA}HAVE_GETPGID${ac_eB}HAVE_GETPGID${ac_eC}1${ac_eD}
  590. +${ac_dA}HAVE_SCANDIR${ac_dB}HAVE_SCANDIR${ac_dC}1${ac_dD}
  591. +${ac_uA}HAVE_SCANDIR${ac_uB}HAVE_SCANDIR${ac_uC}1${ac_uD}
  592. +${ac_eA}HAVE_SCANDIR${ac_eB}HAVE_SCANDIR${ac_eC}1${ac_eD}
  593. +${ac_dA}HAVE_MEMMOVE${ac_dB}HAVE_MEMMOVE${ac_dC}1${ac_dD}
  594. +${ac_uA}HAVE_MEMMOVE${ac_uB}HAVE_MEMMOVE${ac_uC}1${ac_uD}
  595. +${ac_eA}HAVE_MEMMOVE${ac_eB}HAVE_MEMMOVE${ac_eC}1${ac_eD}
  596. +CEOF
  597. +  sed -f conftest.frag conftest.in > conftest.out
  598. +  rm -f conftest.in
  599. +  mv conftest.out conftest.in
  600. +
  601. +  cat > conftest.frag <<CEOF
  602. +${ac_dA}HAVE_UNAME${ac_dB}HAVE_UNAME${ac_dC}1${ac_dD}
  603. +${ac_uA}HAVE_UNAME${ac_uB}HAVE_UNAME${ac_uC}1${ac_uD}
  604. +${ac_eA}HAVE_UNAME${ac_eB}HAVE_UNAME${ac_eC}1${ac_eD}
  605. +${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
  606. +${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
  607. +${ac_eA}STDC_HEADERS${ac_eB}STDC_HEADERS${ac_eC}1${ac_eD}
  608. +${ac_dA}TIME_WITH_SYS_TIME${ac_dB}TIME_WITH_SYS_TIME${ac_dC}1${ac_dD}
  609. +${ac_uA}TIME_WITH_SYS_TIME${ac_uB}TIME_WITH_SYS_TIME${ac_uC}1${ac_uD}
  610. +${ac_eA}TIME_WITH_SYS_TIME${ac_eB}TIME_WITH_SYS_TIME${ac_eC}1${ac_eD}
  611. +${ac_dA}HAVE_DIRENT_H${ac_dB}HAVE_DIRENT_H${ac_dC}1${ac_dD}
  612. +${ac_uA}HAVE_DIRENT_H${ac_uB}HAVE_DIRENT_H${ac_uC}1${ac_uD}
  613. +${ac_eA}HAVE_DIRENT_H${ac_eB}HAVE_DIRENT_H${ac_eC}1${ac_eD}
  614. +CEOF
  615. +  sed -f conftest.frag conftest.in > conftest.out
  616. +  rm -f conftest.in
  617. +  mv conftest.out conftest.in
  618. +
  619. +  cat > conftest.frag <<CEOF
  620. +${ac_dA}RETSIGTYPE${ac_dB}RETSIGTYPE${ac_dC}void${ac_dD}
  621. +${ac_uA}RETSIGTYPE${ac_uB}RETSIGTYPE${ac_uC}void${ac_uD}
  622. +${ac_eA}RETSIGTYPE${ac_eB}RETSIGTYPE${ac_eC}void${ac_eD}
  623. +${ac_dA}POSIX${ac_dB}POSIX${ac_dC}1${ac_dD}
  624. +${ac_uA}POSIX${ac_uB}POSIX${ac_uC}1${ac_uD}
  625. +${ac_eA}POSIX${ac_eB}POSIX${ac_eC}1${ac_eD}
  626. +${ac_dA}USE_SIGACTION${ac_dB}USE_SIGACTION${ac_dC}1${ac_dD}
  627. +${ac_uA}USE_SIGACTION${ac_uB}USE_SIGACTION${ac_uC}1${ac_uD}
  628. +${ac_eA}USE_SIGACTION${ac_eB}USE_SIGACTION${ac_eC}1${ac_eD}
  629. +${ac_dA}WAITPID_DECLARED${ac_dB}WAITPID_DECLARED${ac_dC}1${ac_dD}
  630. +${ac_uA}WAITPID_DECLARED${ac_uB}WAITPID_DECLARED${ac_uC}1${ac_uD}
  631. +${ac_eA}WAITPID_DECLARED${ac_eB}WAITPID_DECLARED${ac_eC}1${ac_eD}
  632. +CEOF
  633. +  sed -f conftest.frag conftest.in > conftest.out
  634. +  rm -f conftest.in
  635. +  mv conftest.out conftest.in
  636. +
  637. +  cat > conftest.frag <<CEOF
  638. +${ac_dA}SYS_ERRLIST_DECLARED${ac_dB}SYS_ERRLIST_DECLARED${ac_dC}1${ac_dD}
  639. +${ac_uA}SYS_ERRLIST_DECLARED${ac_uB}SYS_ERRLIST_DECLARED${ac_uC}1${ac_uD}
  640. +${ac_eA}SYS_ERRLIST_DECLARED${ac_eB}SYS_ERRLIST_DECLARED${ac_eC}1${ac_eD}
  641. +${ac_dA}UNSIGNED_LONG32${ac_dB}UNSIGNED_LONG32${ac_dC}1${ac_dD}
  642. +${ac_uA}UNSIGNED_LONG32${ac_uB}UNSIGNED_LONG32${ac_uC}1${ac_uD}
  643. +${ac_eA}UNSIGNED_LONG32${ac_eB}UNSIGNED_LONG32${ac_eC}1${ac_eD}
  644. +${ac_dA}UNIX_MAIL${ac_dB}UNIX_MAIL${ac_dC}"/var/spool/mail"${ac_dD}
  645. +${ac_uA}UNIX_MAIL${ac_uB}UNIX_MAIL${ac_uC}"/var/spool/mail"${ac_uD}
  646. +${ac_eA}UNIX_MAIL${ac_eB}UNIX_MAIL${ac_eC}"/var/spool/mail"${ac_eD}
  647. +s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  648. +CEOF
  649. +  sed -f conftest.frag conftest.in > conftest.out
  650. +  rm -f conftest.in
  651. +  mv conftest.out conftest.in
  652. +
  653. +  rm -f conftest.frag conftest.h
  654. +  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  655. +  cat conftest.in >> conftest.h
  656. +  rm -f conftest.in
  657. +  if cmp -s $ac_file conftest.h 2>/dev/null; then
  658. +    echo "$ac_file is unchanged"
  659. +    rm -f conftest.h
  660. +  else
  661. +    rm -f $ac_file
  662. +    mv conftest.h $ac_file
  663. +  fi
  664. +fi; done
  665. +
  666. +
  667. +
  668. +exit 0
  669. diff --unified --recursive --new-file ircii-2.8.2/include/color.h colirc/include/color.h
  670. --- ircii-2.8.2/include/color.h    Wed Dec 31 16:00:00 1969
  671. +++ colirc/include/color.h    Thu Jun 20 03:01:21 1996
  672. @@ -0,0 +1,32 @@
  673. +#ifndef _COLOR_H_
  674. +#define _COLOR_H_
  675. +/* define colors as control chars */
  676. +#define BLACK           '\027'
  677. +#define RED             BLACK+1
  678. +#define GREEN           BLACK+2
  679. +#define BROWN           BLACK+3
  680. +#define BLUE            BLACK+4
  681. +#define PURPLE          BLACK+5
  682. +#define CYAN            BLACK+6
  683. +#define WHITE           BLACK+7
  684. +#define BRIGHT          '\025'
  685. +
  686. +#define SAY_COLOR BLUE
  687. +
  688. +#ifndef TRUE
  689. +#define TRUE 1
  690. +#endif
  691. +
  692. +typedef struct _name_color  
  693. +{
  694. +        char *name;
  695. +        char colorstr[5];
  696. +        struct _name_color *next;
  697. +} name_color;
  698. +
  699. +extern  void    colorcmd _((char *, char *, char *));
  700. +extern  void    rcolorcmd _((char *, char *, char *));
  701. +char *color_of();
  702. +name_color *find_nc_name();
  703. +char *tolower_str();
  704. +#endif /* _COLOR_H_ */
  705. diff --unified --recursive --new-file ircii-2.8.2/include/config.h colirc/include/config.h
  706. --- ircii-2.8.2/include/config.h    Fri Jan 20 17:36:03 1995
  707. +++ colirc/include/config.h    Sun Jun 23 05:17:27 1996
  708. @@ -152,6 +152,7 @@
  709.  #define DEFAULT_CLOCK_24HOUR 1
  710.  #define DEFAULT_CLOCK_ALARM NULL
  711.  #define DEFAULT_CMDCHARS "/"
  712. +#define DEFAULT_COLORLINE 0
  713.  #define DEFAULT_COMMAND_MODE 0
  714.  #define DEFAULT_CONTINUED_LINE "  "
  715.  #define DEFAULT_DCC_BLOCK_SIZE 512
  716. diff --unified --recursive --new-file ircii-2.8.2/include/config.h.dist colirc/include/config.h.dist
  717. --- ircii-2.8.2/include/config.h.dist    Mon Oct 17 04:58:26 1994
  718. +++ colirc/include/config.h.dist    Sun Jun 23 05:17:41 1996
  719. @@ -23,7 +23,7 @@
  720.   * to your nearest servers.  However if you use a seperate 'ircII.servers'
  721.   * file and the ircII can find it, this setting is overridden.
  722.   */
  723. -#define DEFAULT_SERVER        "change.this.to.a.server"
  724. +#define DEFAULT_SERVER        "irc"
  725.  
  726.  /*
  727.   * Uncomment the following if the gecos field of your /etc/passwd has other
  728. @@ -153,6 +153,7 @@
  729.  #define DEFAULT_CLOCK_24HOUR 1
  730.  #define DEFAULT_CLOCK_ALARM NULL
  731.  #define DEFAULT_CMDCHARS "/"
  732. +#define DEFAULT_COLORLINE 0
  733.  #define DEFAULT_COMMAND_MODE 0
  734.  #define DEFAULT_CONTINUED_LINE "+"
  735.  #define DEFAULT_DCC_BLOCK_SIZE 512
  736. diff --unified --recursive --new-file ircii-2.8.2/include/defs.h colirc/include/defs.h
  737. --- ircii-2.8.2/include/defs.h    Wed Dec 31 16:00:00 1969
  738. +++ colirc/include/defs.h    Tue Apr 16 15:58:10 1996
  739. @@ -0,0 +1,199 @@
  740. +/* include/defs.h.  Generated automatically by configure.  */
  741. +/* include/defs.h.in.  Generated automatically from configure.in by autoheader.  */
  742. +
  743. +/* Define if on AIX 3.
  744. +   System headers sometimes define this.
  745. +   We just want to avoid a redefinition error message.  */
  746. +#ifndef _ALL_SOURCE
  747. +/* #undef _ALL_SOURCE */
  748. +#endif
  749. +
  750. +/* Define to `int' if <sys/types.h> doesn't define.  */
  751. +/* #undef gid_t */
  752. +
  753. +/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
  754. +#define HAVE_SYS_WAIT_H 1
  755. +
  756. +/* Define to `int' if <sys/types.h> doesn't define.  */
  757. +/* #undef mode_t */
  758. +
  759. +/* Define to `int' if <sys/types.h> doesn't define.  */
  760. +/* #undef pid_t */
  761. +
  762. +/* Define if the system does not provide POSIX.1 features except
  763. +   with this defined.  */
  764. +/* #undef _POSIX_1_SOURCE */
  765. +
  766. +/* Define if you need to in order for stat and other things to work.  */
  767. +/* #undef _POSIX_SOURCE */
  768. +
  769. +/* Define as the return type of signal handlers (int or void).  */
  770. +#define RETSIGTYPE void
  771. +
  772. +/* Define to `unsigned' if <sys/types.h> doesn't define.  */
  773. +/* #undef size_t */
  774. +
  775. +/* Define if you have the ANSI C header files.  */
  776. +#define STDC_HEADERS 1
  777. +
  778. +/* Define on System V Release 4.  */
  779. +/* #undef SVR4 */
  780. +
  781. +/* Define if you can safely include both <sys/time.h> and <time.h>.  */
  782. +#define TIME_WITH_SYS_TIME 1
  783. +
  784. +/* Define to `int' if <sys/types.h> doesn't define.  */
  785. +/* #undef uid_t */
  786. +
  787. +/* define if allow sys/time.h with time.h */
  788. +#define TIME_WITH_SYS_TIME 1
  789. +
  790. +/* define this if you are using BSD wait union thigs */
  791. +/* #undef BSDWAIT */
  792. +
  793. +/* define this if you are using -lcurses */
  794. +/* #undef USING_CURSES */
  795. +
  796. +/* define this if you are using sigaction() instead of signal() */
  797. +#define USE_SIGACTION 1
  798. +
  799. +/* define this if you are using sigset() instead of signal() */
  800. +/* #undef USE_SIGSET */
  801. +
  802. +/* define this if you are using system V (unreliable) signals */
  803. +/* #undef SYSVSIGNALS */
  804. +
  805. +/* define this if wait3() is declared */
  806. +/* #undef WAIT3_DECLARED */
  807. +
  808. +/* define this if waitpid() is declared */
  809. +#define WAITPID_DECLARED 1
  810. +
  811. +/* define this if waitpid() is unavailable */
  812. +/* #undef NEED_WAITPID */
  813. +
  814. +/* define this if you have scandir() */
  815. +#define HAVE_SCANDIR 1
  816. +
  817. +/* define this if you have memmove() */
  818. +#define HAVE_MEMMOVE 1
  819. +
  820. +/* define this if you have setsid() */
  821. +#define HAVE_SETSID 1
  822. +
  823. +/* define this if you have getsid() */
  824. +/* #undef HAVE_GETSID */
  825. +
  826. +/* define this if you have getpgid() */
  827. +#define HAVE_GETPGID 1
  828. +
  829. +/* define this if your getpgrp() doesn't take a pid argument */
  830. +/* #undef BROKEN_GETPGRP */
  831. +
  832. +/* define this if you need getcwd() */
  833. +/* #undef NEED_GETCWD */ 
  834. +
  835. +/* define this if you have hpux version 7 */
  836. +/* #undef HPUX7 */
  837. +
  838. +/* define this if you have hpux version 8 */
  839. +/* #undef HPUX8 */
  840. +
  841. +/* define this if you have an unknown hpux version (pre ver 7) */
  842. +/* #undef HPUXUNKNOWN */
  843. +
  844. +/* define this if an unsigned long is 32 bits */
  845. +#define UNSIGNED_LONG32 1
  846. +
  847. +/* define this if an unsigned int is 32 bits */
  848. +/* #undef UNSIGNED_INT32 */
  849. +
  850. +/* define this if you are unsure what is is 32 bits */
  851. +/* #undef UNKNOWN_32INT */
  852. +
  853. +/* define this if you are on a svr4 derivative */
  854. +/* #undef SVR4 */
  855. +
  856. +/* define this if you are on solaris 2.x */
  857. +/* #undef __solaris__ */
  858. +
  859. +/* define this if you don't have struct linger */
  860. +/* #undef NO_STRUCT_LINGER */
  861. +
  862. +/* define this if you are on svr3/twg */
  863. +/* #undef WINS */
  864. +
  865. +/* define this if you need fchmod */
  866. +/* #undef NEED_FCHMOD */
  867. +
  868. +/* define this to the location of normal unix mail */
  869. +#define UNIX_MAIL "/var/spool/mail"
  870. +
  871. +/* define this if your header files declare sys_errlist */
  872. +#define SYS_ERRLIST_DECLARED 1
  873. +
  874. +/* define this if you have uname(2) */
  875. +#define HAVE_UNAME 1
  876. +
  877. +/* define this if you need strerror(3) */
  878. +/* #undef NEED_STRERROR */
  879. +
  880. +/* Define if you have the <dirent.h> header file.  */
  881. +#define HAVE_DIRENT_H 1
  882. +
  883. +/* Define if you have the <fcntl.h> header file.  */
  884. +#define HAVE_FCNTL_H 1
  885. +
  886. +/* Define if you have the <limits.h> header file.  */
  887. +#define HAVE_LIMITS_H 1
  888. +
  889. +/* Define if you have the <memory.h> header file.  */
  890. +#define HAVE_MEMORY_H 1
  891. +
  892. +/* Define if you have the <ndir.h> header file.  */
  893. +/* #undef HAVE_NDIR_H */
  894. +
  895. +/* Define if you have the <netdb.h> header file.  */
  896. +#define HAVE_NETDB_H 1
  897. +
  898. +/* Define if you have the <stdarg.h> header file.  */
  899. +#define HAVE_STDARG_H 1
  900. +
  901. +/* Define if you have the <string.h> header file.  */
  902. +#define HAVE_STRING_H 1
  903. +
  904. +/* Define if you have the <sys/dir.h> header file.  */
  905. +/* #undef HAVE_SYS_DIR_H */
  906. +
  907. +/* Define if you have the <sys/fcntl.h> header file.  */
  908. +#define HAVE_SYS_FCNTL_H 1
  909. +
  910. +/* Define if you have the <sys/file.h> header file.  */
  911. +#define HAVE_SYS_FILE_H 1
  912. +
  913. +/* Define if you have the <sys/ndir.h> header file.  */
  914. +/* #undef HAVE_SYS_NDIR_H */
  915. +
  916. +/* Define if you have the <sys/ptem.h> header file.  */
  917. +/* #undef HAVE_SYS_PTEM_H */
  918. +
  919. +/* Define if you have the <sys/select.h> header file.  */
  920. +/* #undef HAVE_SYS_SELECT_H */
  921. +
  922. +/* Define if you have the <sys/time.h> header file.  */
  923. +#define HAVE_SYS_TIME_H 1
  924. +
  925. +/* Define if you have the <sys/twg_config.h> header file.  */
  926. +/* #undef HAVE_SYS_TWG_CONFIG_H */
  927. +
  928. +/* Define if you have the <sys/un.h> header file.  */
  929. +#define HAVE_SYS_UN_H 1
  930. +
  931. +/* Define if you have the <sys/wait.h> header file.  */
  932. +#define HAVE_SYS_WAIT_H 1
  933. +
  934. +/* Define if you have the <unistd.h> header file.  */
  935. +#define HAVE_UNISTD_H 1
  936. +
  937. +/* Define if you have the sun library (-lsun).  */
  938. +/* #undef HAVE_LIBSUN */
  939. diff --unified --recursive --new-file ircii-2.8.2/include/irc.h colirc/include/irc.h
  940. --- ircii-2.8.2/include/irc.h    Mon Jan  2 05:31:40 1995
  941. +++ colirc/include/irc.h    Tue Apr 16 15:56:56 1996
  942. @@ -12,7 +12,7 @@
  943.  #ifndef __irc_h
  944.  #define __irc_h
  945.  
  946. -#define IRCII_COMMENT   "this is a bug free client.  honest"
  947. +#define IRCII_COMMENT   "colirc"
  948.  
  949.  #define IRCRC_NAME "/.ircrc"
  950.  
  951. diff --unified --recursive --new-file ircii-2.8.2/include/vars.h.proto colirc/include/vars.h.proto
  952. --- ircii-2.8.2/include/vars.h.proto    Fri Jan  6 07:23:36 1995
  953. +++ colirc/include/vars.h.proto    Tue Apr 16 15:56:56 1996
  954. @@ -50,6 +50,7 @@
  955.  #define CLOCK_24HOUR_VAR $
  956.  #define CLOCK_ALARM_VAR $
  957.  #define CMDCHARS_VAR $
  958. +#define COLORLINE_VAR $
  959.  #define COMMAND_MODE_VAR $
  960.  #define CONTINUED_LINE_VAR $
  961.  #define DCC_BLOCK_SIZE_VAR $
  962. diff --unified --recursive --new-file ircii-2.8.2/source/Makefile colirc/source/Makefile
  963. --- ircii-2.8.2/source/Makefile    Wed Dec 31 16:00:00 1969
  964. +++ colirc/source/Makefile    Fri Jun 14 02:44:54 1996
  965. @@ -0,0 +1,332 @@
  966. +# Generated automatically from Makefile.in by configure.
  967. +# soucre/Makefile.in
  968. +# ircii 2.3
  969. +# all rights reserved
  970. +# written by matthew green.
  971. +# copyright (c) 1993
  972. +# @(#)$Id: Makefile.in,v 1.14 1994/12/29 11:02:44 mrg stable $
  973. +
  974. +LIBS    = -ltermcap 
  975. +CC    = gcc
  976. +CFLAGS    = -g -O
  977. +LDFLAGS    = 
  978. +LEX    = flex
  979. +LEXLIB    = -lfl
  980. +DEFS    = -DHAVE_CONFIG_H
  981. +LN    = ln -s
  982. +RM    = rm -f
  983. +
  984. +OBJECTS = alias.o color.o crypt.o ctcp.o dcc.o debug.o edit.o exec.o flood.o\
  985. +    funny.o help.o history.o hold.o hook.o if.o ignore.o input.o\
  986. +    irc.o ircaux.o ircsig.o keys.o lastlog.o list.o log.o mail.o\
  987. +    menu.o names.o newio.o notice.o notify.o numbers.o output.o\
  988. +    parse.o queue.o reg.o scandir.o screen.o server.o stack.o\
  989. +    status.o term.o translat.o vars.o whois.o window.o $(PP_OBJS)
  990. +
  991. +SOURCES = alias.c color.c crypt.c ctcp.c dcc.c debug.o edit.c exec.c flood.c\
  992. +    funny.c help.c history.c hold.c hook.c if.c ignore.c input.c\
  993. +    irc.c ircaux.c ircsig.c keys.c lastlog.c list.c log.c mail.c\
  994. +    menu.c names.c newio.c notice.c notify.c numbers.c output.c\
  995. +    parse.c queue.c reg.c scandir.c screen.c server.c stack.c\
  996. +    status.c term.c translat.c vars.c whois.c window.c $(PP_SRCS)
  997. +
  998. +IRCSERV_OBJECTS = ircserv.o
  999. +
  1000. +IRCSERV_SOURCES = ircserv.c
  1001. +
  1002. +WSERV_OBJECTS = wserv.o wterm.o
  1003. +
  1004. +WSERV_SOURCES = wserv.c term.c
  1005. +
  1006. +INCLUDES = -I../include
  1007. +
  1008. +default:
  1009. +    (cd ..;make)
  1010. +
  1011. +all: colirc
  1012. +
  1013. +# got I hate typos.
  1014. +clena: clean
  1015. +
  1016. +.c.o:
  1017. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -c $<
  1018. +
  1019. +colirc: $(OBJECTS)
  1020. +    $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -o colirc $(OBJECTS) $(LIBS)
  1021. +clean::
  1022. +    $(RM) colirc $(OBJECTS)
  1023. +
  1024. +install: colirc
  1025. +    cd ..; $(MAKE) install
  1026. +
  1027. +# .o files needing special compilation flags
  1028. +
  1029. +irc.o: Makefile ../Makefile
  1030. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -DIRCLIB=\"$(IRCLIB)/\" -DIRCPATH=\"$(IRCPATH)\" -c irc.c
  1031. +
  1032. +vars.o: Makefile ../Makefile
  1033. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -DDEFAULT_HELP_PATH=\"$(HELP_DIR)\" -c vars.c
  1034. +
  1035. +help.o: Makefile ../Makefile
  1036. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -DDEFAULT_HELP_PATH=\"$(HELP_DIR)\" -c help.c
  1037. +
  1038. +server.o: Makefile ../Makefile
  1039. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -DIRCSERV_PATH=\"$(INSTALL_IRCSERV)\" -c server.c
  1040. +
  1041. +translat.o: Makefile ../Makefile
  1042. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -DTRANSLATION_PATH=\"$(TRANS_DIR)/\" -c translat.c
  1043. +
  1044. +screen.o: Makefile ../Makefile
  1045. +    $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -DWSERV_PATH=\"$(INSTALL_WSERV)\" -c screen.c
  1046. +
  1047. +# .h files generated from .proto files
  1048. +
  1049. +count: count.c
  1050. +    $(CC) $(LDFLAGS) -o count -O count.c $(LEXLIB)
  1051. +
  1052. +count.c: count.l
  1053. +    rm -f count.c
  1054. +    $(LEX) count.l
  1055. +    mv -f lex.yy.c count.c
  1056. +
  1057. +clean::
  1058. +    $(RM) count count.c lex.yy.c
  1059. +
  1060. +../include/vars.h: ../include/vars.h.proto count
  1061. +    -$(RM) $@
  1062. +    ./count < $@.proto > $@
  1063. +../include/hook.h: ../include/hook.h.proto count
  1064. +    -$(RM) $@
  1065. +    ./count < $@.proto > $@
  1066. +../include/keys.h: ../include/keys.h.proto count
  1067. +    -$(RM) $@
  1068. +    ./count < $@.proto > $@
  1069. +clean::
  1070. +    $(RM) ../include/vars.h ../include/hook.h ../include/keys.h
  1071. +
  1072. +# auxiliary programs
  1073. +
  1074. +ircflush: ircflush.o ircsig.o
  1075. +    $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCLUDES) -o ircflush ircflush.o ircsig.o $(LIBS)
  1076. +clean::
  1077. +    $(RM) ircflush ircflush.o
  1078. +
  1079. +ircserv: ircserv.o newio.o ircsig.o
  1080. +    $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(PPS_DEFS) $(INCLUDES) -o ircserv ircserv.o newio.o ircsig.o $(LIBS)
  1081. +clean::
  1082. +    $(RM) ircserv ircserv.o newio.o
  1083. +
  1084. +wserv: $(WSERV_OBJECTS) ircsig.o
  1085. +    $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCLUDES) -o wserv $(WSERV_OBJECTS) ircsig.o $(LIBS)
  1086. +clean::
  1087. +    $(RM) wserv wserv.o wterm.o wterm.c
  1088. +
  1089. +# extra junk
  1090. +
  1091. +clean::
  1092. +    $(RM) core a.out debug.log
  1093. +
  1094. +
  1095. +# dependencies
  1096. +
  1097. +wterm.o: term.c ../include/defs.h ../include/irc.h ../include/config.h ../include/irc_std.h \
  1098. +  ../include/debug.h ../include/term.h 
  1099. +    $(RM) wterm.c
  1100. +    $(LN) term.c wterm.c
  1101. +    $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -DSTTY_ONLY -c wterm.c
  1102. +wserv.o : wserv.c ../include/defs.h ../include/irc.h ../include/config.h ../include/irc_std.h \
  1103. +  ../include/debug.h ../include/term.h
  1104. +
  1105. +alias.o: alias.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1106. +  ../include/debug.h ../include/alias.h ../include/status.h ../include/edit.h \
  1107. +  ../include/history.h ../include/vars.h ../include/ircaux.h ../include/server.h \
  1108. +  ../include/screen.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1109. +  ../include/menu.h ../include/input.h ../include/names.h ../include/output.h 
  1110. +color.o: color.c ../include/irc.h ../include/color.h ../include/vars.h \
  1111. +  ../include/output.h
  1112. +crypt.o: crypt.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1113. +  ../include/debug.h ../include/crypt.h ../include/vars.h ../include/ircaux.h \
  1114. +  ../include/list.h ../include/ctcp.h ../include/output.h 
  1115. +ctcp.o: ctcp.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1116. +  ../include/debug.h ../include/ircaux.h ../include/hook.h ../include/crypt.h \
  1117. +  ../include/ctcp.h ../include/vars.h ../include/server.h ../include/status.h \
  1118. +  ../include/lastlog.h ../include/ignore.h ../include/output.h ../include/window.h \
  1119. +  ../include/hold.h ../include/edit.h ../include/menu.h ../include/dcc.h ../include/names.h \
  1120. +  ../include/parse.h 
  1121. +dcc.o: dcc.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1122. +  ../include/debug.h ../include/talkd.h ../include/server.h ../include/ircaux.h \
  1123. +  ../include/whois.h ../include/lastlog.h ../include/ctcp.h ../include/dcc.h ../include/hook.h \
  1124. +  ../include/vars.h ../include/window.h ../include/hold.h ../include/edit.h ../include/menu.h \
  1125. +  ../include/output.h 
  1126. +debug.o: debug.c ../include/config.h ../include/debug.h 
  1127. +edit.o: edit.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1128. +  ../include/debug.h ../include/parse.h ../include/term.h ../include/server.h \
  1129. +  ../include/edit.h ../include/crypt.h ../include/vars.h ../include/ircaux.h ../include/lastlog.h \
  1130. +  ../include/window.h ../include/hold.h ../include/menu.h ../include/screen.h \
  1131. +  ../include/whois.h ../include/hook.h ../include/input.h ../include/ignore.h \
  1132. +  ../include/keys.h ../include/names.h ../include/alias.h ../include/history.h \
  1133. +  ../include/funny.h ../include/ctcp.h ../include/dcc.h ../include/translat.h \
  1134. +  ../include/output.h ../include/exec.h ../include/notify.h ../include/numbers.h \
  1135. +  ../include/status.h ../include/if.h ../include/help.h ../include/stack.h \
  1136. +  ../include/queue.h ../include/color.h
  1137. +exec.o: exec.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1138. +  ../include/debug.h ../include/exec.h ../include/vars.h ../include/ircaux.h ../include/edit.h \
  1139. +  ../include/window.h ../include/hold.h ../include/lastlog.h ../include/menu.h \
  1140. +  ../include/screen.h ../include/hook.h ../include/input.h ../include/list.h ../include/server.h \
  1141. +  ../include/output.h ../include/parse.h sig.inc 
  1142. +file.o: file.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1143. +  ../include/debug.h 
  1144. +flood.o: flood.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1145. +  ../include/debug.h ../include/hook.h ../include/ircaux.h ../include/ignore.h \
  1146. +  ../include/flood.h ../include/vars.h ../include/output.h 
  1147. +funny.o: funny.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1148. +  ../include/debug.h ../include/ircaux.h ../include/hook.h ../include/vars.h ../include/funny.h \
  1149. +  ../include/names.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1150. +  ../include/edit.h ../include/menu.h ../include/server.h ../include/term.h ../include/output.h \
  1151. +  ../include/numbers.h ../include/parse.h 
  1152. +help.o: help.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1153. +  ../include/debug.h ../include/term.h ../include/server.h ../include/vars.h ../include/ircaux.h \
  1154. +  ../include/input.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1155. +  ../include/edit.h ../include/menu.h ../include/screen.h ../include/output.h \
  1156. +  ../include/help.h 
  1157. +history.o: history.c ../include/irc.h ../include/defs.h ../include/config.h \
  1158. +  ../include/irc_std.h ../include/debug.h ../include/ircaux.h ../include/vars.h \
  1159. +  ../include/history.h ../include/output.h ../include/input.h 
  1160. +hold.o: hold.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1161. +  ../include/debug.h ../include/ircaux.h ../include/window.h ../include/hold.h \
  1162. +  ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/screen.h \
  1163. +  ../include/vars.h ../include/input.h 
  1164. +hook.o: hook.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1165. +  ../include/debug.h ../include/hook.h ../include/vars.h ../include/ircaux.h ../include/alias.h \
  1166. +  ../include/list.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1167. +  ../include/edit.h ../include/menu.h ../include/server.h ../include/output.h 
  1168. +if.o: if.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1169. +  ../include/debug.h ../include/alias.h ../include/ircaux.h ../include/window.h \
  1170. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/vars.h \
  1171. +  ../include/output.h ../include/if.h 
  1172. +ignore.o: ignore.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1173. +  ../include/debug.h ../include/ignore.h ../include/ircaux.h ../include/list.h \
  1174. +  ../include/vars.h ../include/output.h 
  1175. +input.o: input.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1176. +  ../include/debug.h ../include/input.h ../include/term.h ../include/alias.h ../include/vars.h \
  1177. +  ../include/ircaux.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1178. +  ../include/edit.h ../include/menu.h ../include/screen.h ../include/exec.h 
  1179. +irc.o: irc.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1180. +  ../include/debug.h ../include/status.h ../include/dcc.h ../include/names.h ../include/window.h \
  1181. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/vars.h \
  1182. +  ../include/input.h ../include/alias.h ../include/output.h ../include/term.h \
  1183. +  ../include/exec.h ../include/screen.h ../include/log.h ../include/server.h ../include/hook.h \
  1184. +  ../include/keys.h ../include/ircaux.h ../include/history.h ../include/notify.h \
  1185. +  ../include/mail.h 
  1186. +ircaux.o: ircaux.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1187. +  ../include/debug.h ../include/ircaux.h ../include/output.h ../include/term.h 
  1188. +ircflush.o: ircflush.c ../include/irc.h ../include/defs.h ../include/config.h \
  1189. +  ../include/irc_std.h ../include/debug.h Makefile
  1190. +ircserv.o: ircserv.c ../include/defs.h ../include/irc_std.h Makefile
  1191. +ircsig.o: ircsig.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1192. +  ../include/debug.h 
  1193. +keys.o: keys.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1194. +  ../include/debug.h ../include/output.h ../include/keys.h ../include/names.h \
  1195. +  ../include/window.h ../include/hold.h ../include/lastlog.h ../include/edit.h \
  1196. +  ../include/menu.h ../include/ircaux.h ../include/vars.h 
  1197. +lastlog.o: lastlog.c ../include/irc.h ../include/defs.h ../include/config.h \
  1198. +  ../include/irc_std.h ../include/debug.h ../include/lastlog.h ../include/window.h \
  1199. +  ../include/hold.h ../include/edit.h ../include/menu.h ../include/screen.h ../include/vars.h \
  1200. +  ../include/ircaux.h ../include/output.h 
  1201. +list.o: list.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1202. +  ../include/debug.h ../include/list.h ../include/ircaux.h 
  1203. +log.o: log.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1204. +  ../include/debug.h ../include/log.h ../include/vars.h ../include/output.h ../include/ircaux.h 
  1205. +mail.o: mail.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1206. +  ../include/debug.h ../include/mail.h ../include/lastlog.h ../include/hook.h \
  1207. +  ../include/vars.h ../include/ircaux.h ../include/output.h ../include/window.h \
  1208. +  ../include/hold.h ../include/edit.h ../include/menu.h 
  1209. +menu.o: menu.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1210. +  ../include/debug.h ../include/menu.h ../include/list.h ../include/ircaux.h ../include/term.h \
  1211. +  ../include/window.h ../include/hold.h ../include/lastlog.h ../include/edit.h \
  1212. +  ../include/screen.h ../include/input.h ../include/vars.h ../include/output.h 
  1213. +names.o: names.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1214. +  ../include/debug.h ../include/ircaux.h ../include/names.h ../include/window.h \
  1215. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/screen.h \
  1216. +  ../include/server.h ../include/list.h ../include/output.h 
  1217. +newio.o: newio.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1218. +  ../include/debug.h ../include/ircaux.h 
  1219. +notice.o: notice.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1220. +  ../include/debug.h ../include/whois.h ../include/ctcp.h ../include/window.h \
  1221. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/flood.h \
  1222. +  ../include/vars.h ../include/ircaux.h ../include/hook.h ../include/ignore.h \
  1223. +  ../include/server.h ../include/funny.h ../include/output.h ../include/names.h \
  1224. +  ../include/parse.h ../include/notify.h 
  1225. +notify.o: notify.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1226. +  ../include/debug.h ../include/list.h ../include/notify.h ../include/ircaux.h \
  1227. +  ../include/whois.h ../include/hook.h ../include/server.h ../include/output.h \
  1228. +  ../include/vars.h 
  1229. +numbers.o: numbers.c ../include/irc.h ../include/defs.h ../include/config.h \
  1230. +  ../include/irc_std.h ../include/debug.h ../include/input.h ../include/ircaux.h \
  1231. +  ../include/vars.h ../include/lastlog.h ../include/hook.h ../include/server.h \
  1232. +  ../include/whois.h ../include/numbers.h ../include/window.h ../include/hold.h \
  1233. +  ../include/edit.h ../include/menu.h ../include/screen.h ../include/output.h \
  1234. +  ../include/names.h ../include/funny.h ../include/parse.h 
  1235. +output.o: output.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1236. +  ../include/debug.h ../include/output.h ../include/vars.h ../include/input.h \
  1237. +  ../include/term.h ../include/lastlog.h ../include/window.h ../include/hold.h \
  1238. +  ../include/edit.h ../include/menu.h ../include/screen.h ../include/hook.h ../include/ctcp.h \
  1239. +  ../include/log.h ../include/color.h
  1240. +parse.o: parse.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1241. +  ../include/debug.h ../include/server.h ../include/names.h ../include/window.h \
  1242. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/vars.h \
  1243. +  ../include/ctcp.h ../include/hook.h ../include/ignore.h ../include/whois.h ../include/ircaux.h \
  1244. +  ../include/funny.h ../include/crypt.h ../include/term.h ../include/flood.h ../include/screen.h \
  1245. +  ../include/output.h ../include/numbers.h ../include/parse.h ../include/notify.h \
  1246. +  ../include/color.h
  1247. +queue.o: queue.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1248. +  ../include/debug.h ../include/alias.h ../include/ircaux.h ../include/output.h \
  1249. +  ../include/edit.h ../include/if.h ../include/queue.h 
  1250. +reg.o: reg.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1251. +  ../include/debug.h ../include/ircaux.h 
  1252. +scandir.o: scandir.c ../include/defs.h 
  1253. +screen.o: screen.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1254. +  ../include/debug.h ../include/screen.h ../include/window.h ../include/hold.h \
  1255. +  ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/output.h \
  1256. +  ../include/vars.h ../include/server.h ../include/list.h ../include/term.h ../include/names.h \
  1257. +  ../include/ircaux.h ../include/input.h ../include/log.h ../include/hook.h ../include/dcc.h \
  1258. +  ../include/translat.h ../include/exec.h ../include/color.h
  1259. +server.o: server.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1260. +  ../include/debug.h ../include/server.h ../include/ircaux.h ../include/whois.h \
  1261. +  ../include/lastlog.h ../include/exec.h ../include/window.h ../include/hold.h \
  1262. +  ../include/edit.h ../include/menu.h ../include/output.h ../include/names.h ../include/parse.h 
  1263. +stack.o: stack.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1264. +  ../include/debug.h ../include/stack.h ../include/hook.h ../include/alias.h ../include/window.h \
  1265. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/ircaux.h \
  1266. +  ../include/output.h ../include/list.h 
  1267. +status.o: status.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1268. +  ../include/debug.h ../include/term.h ../include/status.h ../include/server.h \
  1269. +  ../include/vars.h ../include/hook.h ../include/input.h ../include/edit.h ../include/window.h \
  1270. +  ../include/hold.h ../include/lastlog.h ../include/menu.h ../include/screen.h \
  1271. +  ../include/mail.h ../include/output.h ../include/names.h ../include/ircaux.h \
  1272. +  ../include/translat.h ../include/color.h
  1273. +term.o: term.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1274. +  ../include/debug.h ../include/term.h ../include/translat.h ../include/window.h \
  1275. +  ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/screen.h 
  1276. +translat.o: translat.c ../include/irc.h ../include/defs.h ../include/config.h \
  1277. +  ../include/irc_std.h ../include/debug.h ../include/vars.h ../include/translat.h \
  1278. +  ../include/ircaux.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1279. +  ../include/edit.h ../include/menu.h ../include/screen.h ../include/output.h \
  1280. +  digraph.inc 
  1281. +vars.o: vars.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1282. +  ../include/debug.h ../include/status.h ../include/window.h ../include/hold.h \
  1283. +  ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/log.h ../include/crypt.h \
  1284. +  ../include/history.h ../include/notify.h ../include/vars.h ../include/input.h \
  1285. +  ../include/ircaux.h ../include/whois.h ../include/translat.h ../include/term.h \
  1286. +  ../include/output.h 
  1287. +whois.o: whois.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1288. +  ../include/debug.h ../include/whois.h ../include/hook.h ../include/lastlog.h \
  1289. +  ../include/vars.h ../include/server.h ../include/ignore.h ../include/ircaux.h \
  1290. +  ../include/notify.h ../include/numbers.h ../include/window.h ../include/hold.h \
  1291. +  ../include/edit.h ../include/menu.h ../include/output.h ../include/parse.h ../include/ctcp.h 
  1292. +window.o: window.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1293. +  ../include/debug.h ../include/screen.h ../include/window.h ../include/hold.h \
  1294. +  ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/vars.h ../include/server.h \
  1295. +  ../include/list.h ../include/term.h ../include/names.h ../include/ircaux.h ../include/input.h \
  1296. +  ../include/status.h ../include/output.h ../include/log.h ../include/hook.h ../include/dcc.h \
  1297. +  ../include/translat.h 
  1298. diff --unified --recursive --new-file ircii-2.8.2/source/Makefile.in colirc/source/Makefile.in
  1299. --- ircii-2.8.2/source/Makefile.in    Thu Dec 29 03:02:44 1994
  1300. +++ colirc/source/Makefile.in    Tue Apr 16 15:56:56 1996
  1301. @@ -15,14 +15,14 @@
  1302.  LN    = @LN@
  1303.  RM    = @RM@
  1304.  
  1305. -OBJECTS = alias.o crypt.o ctcp.o dcc.o debug.o edit.o exec.o flood.o\
  1306. +OBJECTS = alias.o color.o crypt.o ctcp.o dcc.o debug.o edit.o exec.o flood.o\
  1307.      funny.o help.o history.o hold.o hook.o if.o ignore.o input.o\
  1308.      irc.o ircaux.o ircsig.o keys.o lastlog.o list.o log.o mail.o\
  1309.      menu.o names.o newio.o notice.o notify.o numbers.o output.o\
  1310.      parse.o queue.o reg.o scandir.o screen.o server.o stack.o\
  1311.      status.o term.o translat.o vars.o whois.o window.o $(PP_OBJS)
  1312.  
  1313. -SOURCES = alias.c crypt.c ctcp.c dcc.c debug.o edit.c exec.c flood.c\
  1314. +SOURCES = alias.c color.c crypt.c ctcp.c dcc.c debug.o edit.c exec.c flood.c\
  1315.      funny.c help.c history.c hold.c hook.c if.c ignore.c input.c\
  1316.      irc.c ircaux.c ircsig.c keys.c lastlog.c list.c log.c mail.c\
  1317.      menu.c names.c newio.c notice.c notify.c numbers.c output.c\
  1318. @@ -42,7 +42,7 @@
  1319.  default:
  1320.      (cd ..;make)
  1321.  
  1322. -all: irc
  1323. +all: colirc
  1324.  
  1325.  # got I hate typos.
  1326.  clena: clean
  1327. @@ -50,12 +50,12 @@
  1328.  .c.o:
  1329.      $(CC) $(CFLAGS) $(DEFS) $(PP_DEFS) $(INCLUDES) -c $<
  1330.  
  1331. -irc: $(OBJECTS)
  1332. -    $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -o irc $(OBJECTS) $(LIBS)
  1333. +colirc: $(OBJECTS)
  1334. +    $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -o colirc $(OBJECTS) $(LIBS)
  1335.  clean::
  1336. -    $(RM) irc $(OBJECTS)
  1337. +    $(RM) colirc $(OBJECTS)
  1338.  
  1339. -install: irc
  1340. +install: colirc
  1341.      cd ..; $(MAKE) install
  1342.  
  1343.  # .o files needing special compilation flags
  1344. @@ -141,6 +141,8 @@
  1345.    ../include/history.h ../include/vars.h ../include/ircaux.h ../include/server.h \
  1346.    ../include/screen.h ../include/window.h ../include/hold.h ../include/lastlog.h \
  1347.    ../include/menu.h ../include/input.h ../include/names.h ../include/output.h 
  1348. +color.o: color.c ../include/irc.h ../include/color.h ../include/vars.h \
  1349. +  ../include/output.h
  1350.  crypt.o: crypt.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1351.    ../include/debug.h ../include/crypt.h ../include/vars.h ../include/ircaux.h \
  1352.    ../include/list.h ../include/ctcp.h ../include/output.h 
  1353. @@ -164,7 +166,8 @@
  1354.    ../include/keys.h ../include/names.h ../include/alias.h ../include/history.h \
  1355.    ../include/funny.h ../include/ctcp.h ../include/dcc.h ../include/translat.h \
  1356.    ../include/output.h ../include/exec.h ../include/notify.h ../include/numbers.h \
  1357. -  ../include/status.h ../include/if.h ../include/help.h ../include/stack.h ../include/queue.h 
  1358. +  ../include/status.h ../include/if.h ../include/help.h ../include/stack.h \
  1359. +  ../include/queue.h ../include/color.h
  1360.  exec.o: exec.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1361.    ../include/debug.h ../include/exec.h ../include/vars.h ../include/ircaux.h ../include/edit.h \
  1362.    ../include/window.h ../include/hold.h ../include/lastlog.h ../include/menu.h \
  1363. @@ -267,13 +270,14 @@
  1364.    ../include/debug.h ../include/output.h ../include/vars.h ../include/input.h \
  1365.    ../include/term.h ../include/lastlog.h ../include/window.h ../include/hold.h \
  1366.    ../include/edit.h ../include/menu.h ../include/screen.h ../include/hook.h ../include/ctcp.h \
  1367. -  ../include/log.h 
  1368. +  ../include/log.h ../include/color.h
  1369.  parse.o: parse.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1370.    ../include/debug.h ../include/server.h ../include/names.h ../include/window.h \
  1371.    ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/vars.h \
  1372.    ../include/ctcp.h ../include/hook.h ../include/ignore.h ../include/whois.h ../include/ircaux.h \
  1373.    ../include/funny.h ../include/crypt.h ../include/term.h ../include/flood.h ../include/screen.h \
  1374. -  ../include/output.h ../include/numbers.h ../include/parse.h ../include/notify.h 
  1375. +  ../include/output.h ../include/numbers.h ../include/parse.h ../include/notify.h \
  1376. +  ../include/color.h
  1377.  queue.o: queue.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1378.    ../include/debug.h ../include/alias.h ../include/ircaux.h ../include/output.h \
  1379.    ../include/edit.h ../include/if.h ../include/queue.h 
  1380. @@ -285,7 +289,7 @@
  1381.    ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/output.h \
  1382.    ../include/vars.h ../include/server.h ../include/list.h ../include/term.h ../include/names.h \
  1383.    ../include/ircaux.h ../include/input.h ../include/log.h ../include/hook.h ../include/dcc.h \
  1384. -  ../include/translat.h ../include/exec.h 
  1385. +  ../include/translat.h ../include/exec.h ../include/color.h
  1386.  server.o: server.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1387.    ../include/debug.h ../include/server.h ../include/ircaux.h ../include/whois.h \
  1388.    ../include/lastlog.h ../include/exec.h ../include/window.h ../include/hold.h \
  1389. @@ -299,7 +303,7 @@
  1390.    ../include/vars.h ../include/hook.h ../include/input.h ../include/edit.h ../include/window.h \
  1391.    ../include/hold.h ../include/lastlog.h ../include/menu.h ../include/screen.h \
  1392.    ../include/mail.h ../include/output.h ../include/names.h ../include/ircaux.h \
  1393. -  ../include/translat.h 
  1394. +  ../include/translat.h ../include/color.h
  1395.  term.o: term.c ../include/irc.h ../include/defs.h ../include/config.h ../include/irc_std.h \
  1396.    ../include/debug.h ../include/term.h ../include/translat.h ../include/window.h \
  1397.    ../include/hold.h ../include/lastlog.h ../include/edit.h ../include/menu.h ../include/screen.h 
  1398. diff --unified --recursive --new-file ircii-2.8.2/source/color.c colirc/source/color.c
  1399. --- ircii-2.8.2/source/color.c    Wed Dec 31 16:00:00 1969
  1400. +++ colirc/source/color.c    Sun Jun 23 05:16:57 1996
  1401. @@ -0,0 +1,346 @@
  1402. +/* a color irc hack similar to circ, with some more features...
  1403. + * since the source for circ was not found, this is completely from scratch
  1404. + * bugs, ideas, and whatnot can be sent to escrafrd@oz.net <MadHacker on LinuxNet>
  1405. + */
  1406. +
  1407. +#include "irc.h"
  1408. +#include "output.h"
  1409. +#include "vars.h"
  1410. +#include "color.h"
  1411. +#include "ircaux.h"
  1412. +
  1413. +char rcolors[16]={0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1};
  1414. +struct  {
  1415. +    char name[10];
  1416. +    unsigned int age;
  1417. +} color_age[16];
  1418. +
  1419. +char colorstring[5];
  1420. +name_color *nc_start = NULL;
  1421. +name_color *nc_last = NULL;
  1422. +
  1423. +void
  1424. +rcolorcmd(command, args, subargs)
  1425. +        char    *command,
  1426. +                *args,
  1427. +                *subargs;
  1428. +{
  1429. +        char *arg;
  1430. +        char colorstr[5];
  1431. +        int x;
  1432. +    int bright;
  1433. +    int char_;
  1434. +    char brightstr[]="bright ";
  1435. +    char *selectstr[2]= {"deselected", "selected"};
  1436. +    char rcolors_str[17];
  1437. +
  1438. +        while ((arg = next_arg(args, &args)) != NULL)
  1439. +    {
  1440. +        bright=0;
  1441. +        char_=1;
  1442. +        brightstr[0] = 'b';
  1443. +            if (arg[0] != '-' && arg[0] != '+')
  1444. +        {
  1445. +                        say("%s is a bad argument for /rcolor", arg);
  1446. +                        continue;
  1447. +        }
  1448. +                if (!strcmp(arg, "-all"))
  1449. +        {
  1450. +                    for (x = 0; x < 16; x++)
  1451. +                                rcolors[x] = 0;
  1452. +            say("all colors deselected");
  1453. +        }
  1454. +                else if (!strcmp(arg, "+all"))
  1455. +        {
  1456. +                        for (x = 0; x < 16; x++)
  1457. +                                rcolors[x] = 1;
  1458. +            say("all colors selected");
  1459. +        }
  1460. +                else
  1461. +        {
  1462. +/*                        color_to_i(arg+1, colorstr);*/
  1463. +            x = 0;
  1464. +            do  {
  1465. +            
  1466. +                switch (tolower(arg[char_]))
  1467. +                {
  1468. +                     case 'b':
  1469. +                        if (!strcmp(arg+char_, "black"))
  1470. +                        {    
  1471. +                            x = BLACK;
  1472. +                        }
  1473. +                        else if (!strcmp(arg+char_, "blue"))
  1474. +                        {                
  1475. +                            x = BLUE;
  1476. +                        }
  1477. +                        else if (!strcmp(arg+char_, "brown"))
  1478. +                        {
  1479. +                            x = BROWN;
  1480. +                        }
  1481. +                        else
  1482. +                        {
  1483. +                            bright = TRUE;
  1484. +                            char_++; 
  1485. +                        }
  1486. +                        break;
  1487. +                     case 'c':
  1488. +                        x = CYAN;
  1489. +                        break;
  1490. +                     case 'g':
  1491. +                        x = GREEN;
  1492. +                        break;
  1493. +                    case 'r':
  1494. +                        x = RED;
  1495. +                        break;
  1496. +                    case 'p':
  1497. +                        x = PURPLE;
  1498. +                        break;
  1499. +                    case 'w':
  1500. +                        x = WHITE;
  1501. +                        break;
  1502. +                    default:
  1503. +                        put_it("%s is not a color, type /color to get a list of colors", arg+1);
  1504. +                               return;
  1505. +                }
  1506. +            } while (bright && x == 0);
  1507. +                        
  1508. +            if (x == 0) return;
  1509. +                        x -= BLACK;
  1510. +                        if (bright) {x += 8;} 
  1511. +            else brightstr[0] = '\0';
  1512. +                        rcolors[x] = 0;
  1513. +                        if (arg[0] == '+') rcolors[x] = 1;
  1514. +            say("%s%s %s", brightstr, arg+char_, selectstr[rcolors[x]]);
  1515. +        }
  1516. +
  1517. +    }
  1518. +
  1519. +}
  1520. +
  1521. +char *
  1522. +tolower_str(string)
  1523. +        char *string;
  1524. +{
  1525. +        char *lower_str;
  1526. +        int x;
  1527. +
  1528. +        lower_str = (char *)new_malloc(strlen(string)+1);
  1529. +        for (x = 0; x <= strlen(string); x++)
  1530. +                lower_str[x] = tolower(string[x]);
  1531. +        lower_str[x] = '\0';
  1532. +        return lower_str;
  1533. +}
  1534. +void
  1535. +colorcmd(command, args, subargs)
  1536. +        char    *command,
  1537. +                *args,
  1538. +        *subargs;
  1539. +{
  1540. +    char *name, *color;
  1541. +    char colorstr[5];
  1542. +    name_color *nc;
  1543. +    int bright;
  1544. +    char brightstr[]="bright ";
  1545. +        char *lower_name;
  1546. +    int x;
  1547. +    
  1548. +    
  1549. +    if (((name = next_arg(args, &args)) != NULL) &&
  1550. +        ((color = next_arg(args, &args)) != NULL))
  1551. +    {
  1552. +        colorstr[0] = -1;
  1553. +        bright = 0;
  1554. +        do  {
  1555. +            
  1556. +        switch (tolower(color[0]))
  1557. +        {
  1558. +             case 'b':
  1559. +                if (!strcmp(color, "black"))
  1560. +                {    
  1561. +                    colorstr[0] = BLACK;
  1562. +                }
  1563. +                else if (!strcmp(color, "blue"))
  1564. +                {                
  1565. +                    colorstr[0] = BLUE;
  1566. +                }
  1567. +                else if (!strcmp(color, "brown"))
  1568. +                {
  1569. +                    colorstr[0] = BROWN;
  1570. +                }
  1571. +                else
  1572. +                {
  1573. +                    bright = TRUE;
  1574. +                    color++; 
  1575. +                }
  1576. +                break;
  1577. +             case 'c':
  1578. +                colorstr[0] = CYAN;
  1579. +                break;
  1580. +             case 'g':
  1581. +                colorstr[0] = GREEN;
  1582. +                break;
  1583. +            case 'r':
  1584. +                colorstr[0] = RED;
  1585. +                break;
  1586. +            case 'p':
  1587. +                colorstr[0] = PURPLE;
  1588. +                break;
  1589. +            case 'w':
  1590. +                colorstr[0] = WHITE;
  1591. +                break;
  1592. +            case 'n':
  1593. +                colorstr[0] = (char)NULL;
  1594. +                break;
  1595. +             default:
  1596. +                put_it("%s is not a color, type /color to get a list of colors", color);
  1597. +                       return;
  1598. +        }
  1599. +        } while (bright && colorstr[0] == -1);
  1600. +        colorstr[1] = '\0';
  1601. +        if (bright)
  1602. +        {
  1603. +            colorstr[1] = BRIGHT;
  1604. +            colorstr[2] = '\0';
  1605. +        }
  1606. +        if (nc = find_nc_name(name))
  1607. +        {
  1608. +            strcpy(nc->colorstr, colorstr);
  1609. +        }
  1610. +        else 
  1611. +        {
  1612. +            nc = (name_color *) new_malloc(sizeof(name_color));
  1613. +            nc->name = (char *) new_malloc(strlen(name)+1);
  1614. +                lower_name = (char *) new_malloc(strlen(name)+1);
  1615. +                for (x = 0; x <= strlen(name); x++)
  1616. +                        lower_name[x] = tolower(name[x]);
  1617. +            strcpy(nc->name, lower_name);
  1618. +            new_free(&lower_name);
  1619. +            strcpy(nc->colorstr, colorstr);
  1620. +            if (nc_start == NULL) 
  1621. +            {
  1622. +                nc_start = nc;
  1623. +                nc_last = nc;
  1624. +                nc->next = NULL;
  1625. +            }
  1626. +            else 
  1627. +            {                
  1628. +                nc_last->next = nc;
  1629. +                nc_last = nc;
  1630. +                nc->next = NULL;
  1631. +            }
  1632. +        }
  1633. +        if (bright) 
  1634. +        {
  1635. +            strcpy(brightstr, "bright ");
  1636. +        }
  1637. +        else brightstr[0] = '\0';
  1638. +        say("%s is now %s%s", nc->name, brightstr, color);
  1639. +    }
  1640. +        else
  1641. +    {
  1642. +        say("Usage: /COLOR name color");
  1643. +        say("colors: black red green brown blue purple cyan white none");
  1644. +        say("for bright colors prefix b to the color <bred for bright red, etc>");
  1645. +    }
  1646. +}
  1647. +
  1648. +char *
  1649. +color_of(name)
  1650. +    char *name;
  1651. +{
  1652. +    int i=0;
  1653. +    name_color *nc;
  1654. +    int x,y,z;
  1655. +    int a=0;
  1656. +
  1657. +    for (x = 0; x < 16; x++)
  1658. +        /* 1000 is arbitrary to keep it from rolling over */
  1659. +        if (color_age[x].age < 1000) color_age[x].age++;
  1660. +    if (nc = find_nc_name(name))
  1661. +    {
  1662. +        if (*nc->colorstr) 
  1663. +        {
  1664. +            x = nc->colorstr[0]-BLACK;
  1665. +            color_age[x].name[0]='\0';
  1666. +            color_age[x].age=0;
  1667. +            return nc->colorstr;
  1668. +        }
  1669. +    }
  1670. +    for (x = 0; x < 16; x++)
  1671. +        if (rcolors[x] == 1)
  1672. +            if (!strcmp(color_age[x].name, name))
  1673. +                a = x;
  1674. +            
  1675. +    {
  1676. +                /* find oldest color */
  1677. +        for (x = 0, y = 0, z = -1; x < 16; x++)
  1678. +        {
  1679. +            if (rcolors[x] == 1) 
  1680. +                if (color_age[x].age > y)
  1681. +                {
  1682. +                    y = color_age[x].age;
  1683. +                    z = x;
  1684. +                }
  1685. +        }
  1686. +        if (z == -1) 
  1687. +        {
  1688. +            colorstring[0] = WHITE;
  1689. +            colorstring[1] = '\0';
  1690. +            return colorstring;
  1691. +        }
  1692. +        if (a) z = a;
  1693. +        strcpy(color_age[z].name, name);
  1694. +        color_age[z].age = 0;
  1695. +        
  1696. +/*        for (x = 0, y = 0; x < 16; x++)
  1697. +                        if (rcolors[x] == 1) y++;
  1698. +                if (y == 0)
  1699. +        {
  1700. +                        colorstring[0] = WHITE;
  1701. +                        colorstring[1] = '\0';
  1702. +                        return colorstring;
  1703. +        }
  1704. +                i = (name[0]+name[1]) % y;
  1705. +                i++;
  1706. +                for (x = 0, y = 0; y < i; x++)
  1707. +                    if (rcolors[x] == 1) y++;
  1708. + */ 
  1709. +        i = 0;
  1710. +                if (z < 8)
  1711. +        {
  1712. +                        colorstring[i++] = z + BLACK;
  1713. +        }
  1714. +                else
  1715. +        {
  1716. +                        colorstring[i++] = (z - 8) + BLACK;
  1717. +                        colorstring[i++] = BRIGHT;
  1718. +        }
  1719. +        colorstring[i] = '\0';
  1720. +                return colorstring;
  1721. +    }
  1722. +}
  1723. +
  1724. +name_color *
  1725. +find_nc_name(name)
  1726. +    char *name;
  1727. +{
  1728. +    name_color *nc;
  1729. +    char *lower_name;
  1730. +    int x;
  1731. +    
  1732. +    lower_name = (char *) new_malloc(strlen(name)+1);
  1733. +    for (x = 0; x <= strlen(name); x++) 
  1734. +        lower_name[x] = tolower(name[x]);
  1735. +    for (nc = nc_start; nc != NULL; nc = nc->next)
  1736. +    {
  1737. +        if (!strcmp(nc->name, lower_name))
  1738. +        {
  1739. +            new_free(&lower_name);
  1740. +            return nc;
  1741. +        }
  1742. +    }
  1743. +    new_free(&lower_name);
  1744. +    return NULL;
  1745. +}
  1746. +    
  1747. diff --unified --recursive --new-file ircii-2.8.2/source/ctcp.c colirc/source/ctcp.c
  1748. --- ircii-2.8.2/source/ctcp.c    Fri Jan  6 07:16:34 1995
  1749. +++ colirc/source/ctcp.c    Tue Apr 16 15:56:56 1996
  1750. @@ -34,6 +34,7 @@
  1751.  #include "dcc.h"
  1752.  #include "names.h"
  1753.  #include "parse.h"
  1754. +#include "color.h"
  1755.  
  1756.  #define    CTCP_SHUTUP    0
  1757.  #define    CTCP_VERBOSE    1
  1758. @@ -669,20 +670,24 @@
  1759.          *to,
  1760.          *cmd;
  1761.  {
  1762. +    char cline[3];
  1763. +    
  1764.      if (cmd && *cmd)
  1765.      {
  1766.          int old;
  1767.  
  1768.          old = set_lastlog_msg_level(LOG_ACTION);
  1769. +        cline[0] = WHITE; cline[1] = '\0';
  1770. +        if (get_int_var(COLORLINE_VAR)) strcpy(cline, color_of(from));
  1771.          if (is_channel(to))
  1772.          {
  1773.              message_from(to, LOG_ACTION);
  1774.              if (do_hook(ACTION_LIST, "%s %s %s", from, to, cmd))
  1775.              {
  1776.                  if (is_current_channel(to, 0))
  1777. -                    put_it("* %s %s", from, cmd);
  1778. +                    put_it("* %s%s %s%s%c ", color_of(from), from, cline, cmd, WHITE);
  1779.                  else
  1780. -                    put_it("* %s:%s %s", from, to, cmd);
  1781. +                    put_it("* %s%s%c:%s%s %s%s%c ", color_of(from), from, WHITE, color_of(to), to, cline, cmd, WHITE);
  1782.              }
  1783.          }
  1784.          else
  1785. diff --unified --recursive --new-file ircii-2.8.2/source/edit.c colirc/source/edit.c
  1786. --- ircii-2.8.2/source/edit.c    Mon Apr  3 07:48:21 1995
  1787. +++ colirc/source/edit.c    Tue Apr 16 15:56:56 1996
  1788. @@ -52,6 +52,7 @@
  1789.  #include "help.h"
  1790.  #include "stack.h"
  1791.  #include "queue.h"
  1792. +#include "color.h"
  1793.  
  1794.  /*
  1795.   * current_exec_timer - used to make sure we don't remove a timer
  1796. @@ -207,6 +208,8 @@
  1797.      { "CD",        NULL,        cd,            0 },
  1798.      { "CHANNEL",    "JOIN",        e_channel,        0 },
  1799.      { "CLEAR",    NULL,        clear,            0 },
  1800. +    { "COLOR",    NULL,        colorcmd,        0 },
  1801. +    { "COLOUR",    NULL,        colorcmd,        0 },
  1802.      { "COMMENT",    NULL,        comment,        0 },
  1803.      { "CONNECT",    "CONNECT",    send_comm,        0 },
  1804.      { "CTCC",    NULL,        dcc,            0 },
  1805. @@ -269,6 +272,8 @@
  1806.      { "QUIT",    "QUIT",        e_quit,            NONOVICEABBREV},
  1807.      { "QUOTE",    NULL,        quote,            0 },
  1808.      { "RBIND",    0,        rbindcmd,        0 },
  1809. +    { "RCOLOR",    NULL,        rcolorcmd,        0 },
  1810. +    { "RCOLOUR",    NULL,        rcolorcmd,        0 },
  1811.      { "REDIRECT",    NULL,        redirect,        0 },
  1812.      { "REHASH",    "REHASH",    send_comm,        0 },
  1813.      { "REQUEST",    NULL,        ctcp,            0 },
  1814. diff --unified --recursive --new-file ircii-2.8.2/source/names.c colirc/source/names.c
  1815. --- ircii-2.8.2/source/names.c    Thu Apr  6 20:37:25 1995
  1816. +++ colirc/source/names.c    Tue Apr 16 15:56:56 1996
  1817. @@ -24,6 +24,7 @@
  1818.  #include "lastlog.h"
  1819.  #include "list.h"
  1820.  #include "output.h"
  1821. +#include "color.h"
  1822.  
  1823.  static    char    mode_str[] = "iklmnpst";
  1824.  
  1825. @@ -552,6 +553,7 @@
  1826.  {
  1827.      ChannelList *chan;
  1828.      NickList *tmp;
  1829. +    name_color *nc;
  1830.  
  1831.      for (chan = channel_list; chan; chan = chan->next)
  1832.      {
  1833. @@ -561,6 +563,11 @@
  1834.              {
  1835.                  new_free(&tmp->nick);
  1836.                  malloc_strcpy(&tmp->nick, new_nick);
  1837. +                if (nc = find_nc_name(old_nick))
  1838. +                {
  1839. +                    new_free(&nc->name);
  1840. +                    nc->name = tolower_str(new_nick);
  1841. +                }
  1842.              }
  1843.          }
  1844.      }
  1845. diff --unified --recursive --new-file ircii-2.8.2/source/output.c colirc/source/output.c
  1846. --- ircii-2.8.2/source/output.c    Fri Jan  6 07:16:56 1995
  1847. +++ colirc/source/output.c    Tue Apr 16 15:56:56 1996
  1848. @@ -27,6 +27,7 @@
  1849.  #include "hook.h"
  1850.  #include "ctcp.h"
  1851.  #include "log.h"
  1852. +#include "color.h"
  1853.  
  1854.      int    in_help = 0;
  1855.  
  1856. @@ -159,14 +160,16 @@
  1857.  #endif
  1858.      if (window_display)
  1859.      {
  1860. -        putbuf[0] = putbuf[1] = putbuf[2] = '*';
  1861. -        putbuf[3] = ' ';
  1862. +        putbuf[0] = SAY_COLOR;
  1863. +        putbuf[1] = putbuf[2] = putbuf[3] = '*';
  1864. +        putbuf[4] = ' ';
  1865. +        putbuf[5] = WHITE;
  1866.  #ifdef USE_STDARG_H
  1867.          va_start(vl, format);
  1868. -        vsprintf(&putbuf[4], format, vl);
  1869. +        vsprintf(&putbuf[6], format, vl);
  1870.          va_end(vl);
  1871.  #else
  1872. -        sprintf(&putbuf[4], format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  1873. +        sprintf(&putbuf[6], format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  1874.  #endif
  1875.          add_to_log(irclog_fp, putbuf);
  1876.          add_to_screen(putbuf);
  1877. diff --unified --recursive --new-file ircii-2.8.2/source/parse.c colirc/source/parse.c
  1878. --- ircii-2.8.2/source/parse.c    Sun Jan 15 22:22:55 1995
  1879. +++ colirc/source/parse.c    Tue Apr 16 15:56:56 1996
  1880. @@ -35,6 +35,7 @@
  1881.  #include "numbers.h"
  1882.  #include "parse.h"
  1883.  #include "notify.h"
  1884. +#include "color.h"
  1885.  
  1886.  #define STRING_CHANNEL '+'
  1887.  #define MULTI_CHANNEL '#'
  1888. @@ -437,12 +438,16 @@
  1889.          *to;
  1890.      char    *high;
  1891.      int    no_flood;
  1892. +    char    bwhite[]= {WHITE, BRIGHT, '\0'};
  1893. +    char    cline[3];
  1894.  
  1895.  if (!from)
  1896.          return;
  1897.      PasteArgs(Args, 1);
  1898.      to = Args[0];
  1899.      ptr = Args[1];
  1900. +    cline[0] = WHITE; cline[1] = '\0';
  1901. +    if (get_int_var(COLORLINE_VAR)) strcpy(cline, color_of(from));
  1902.      if (!to || !ptr)
  1903.          return;
  1904.      if (is_channel(to))
  1905. @@ -549,15 +554,14 @@
  1906.              doing_privmsg = 1;
  1907.              if (no_flood && do_hook(list_type, "%s %s %s", from, 
  1908.                  to, ptr))
  1909. -                put_it("%s<%s>%s %s", high, from, high, ptr);
  1910. +                put_it("%s<%s%s%s> %s%s%c ", bwhite, color_of(from), from, bwhite, cline, ptr, WHITE);
  1911.              doing_privmsg = 0;
  1912.              break;
  1913.          case PUBLIC_OTHER_LIST:
  1914.              doing_privmsg = 1;
  1915.              if (no_flood && do_hook(list_type, "%s %s %s", from,
  1916.                  to, ptr))
  1917. -                put_it("%s<%s:%s>%s %s", high, from, to, high,
  1918. -                    ptr);
  1919. +                put_it("%s<%s%s%s:%s%s%s> %s%s%c ", bwhite, color_of(from), from, bwhite, color_of(to), to, bwhite, cline, ptr, WHITE);
  1920.              doing_privmsg = 0;
  1921.              break;
  1922.          }
  1923. diff --unified --recursive --new-file ircii-2.8.2/source/screen.c colirc/source/screen.c
  1924. --- ircii-2.8.2/source/screen.c    Mon Apr  3 07:48:28 1995
  1925. +++ colirc/source/screen.c    Tue Apr 16 15:56:56 1996
  1926. @@ -35,6 +35,7 @@
  1927.  #include "dcc.h"
  1928.  #include "translat.h"
  1929.  #include "exec.h"
  1930. +#include "color.h"
  1931.  
  1932.      Window    *to_window;
  1933.      Screen    *current_screen;
  1934. @@ -440,7 +441,17 @@
  1935.      {
  1936.          switch (*ptr)
  1937.          {
  1938. +        case BLACK:
  1939. +        case BLUE:
  1940. +        case GREEN:
  1941. +        case CYAN:
  1942. +        case RED:
  1943. +        case PURPLE:
  1944. +        case BROWN:
  1945. +        case WHITE:
  1946. +        case BRIGHT:
  1947.          case REV_TOG:
  1948. +            
  1949.          case UND_TOG:
  1950.          case BOLD_TOG:
  1951.          case ALL_OFF:
  1952. @@ -510,6 +521,16 @@
  1953.                  bold = display_bold(TOGGLE);
  1954.                  bold = 1 - bold;
  1955.              }
  1956. +                        if (*ptr >= BLACK && *ptr <= WHITE)
  1957. +                        {
  1958. +                                fflush(current_screen->fpout);
  1959. +                                fprintf(current_screen->fpout, "\e[0;3%dm", *ptr - BLACK);
  1960. +                        }
  1961. +                        if (*ptr == BRIGHT)
  1962. +                        {
  1963. +                                fflush(current_screen->fpout);
  1964. +                                fprintf(current_screen->fpout, "\e[1m");
  1965. +                        }
  1966.              str = ++ptr;
  1967.              break;
  1968.          case '\007':
  1969. @@ -1146,6 +1167,16 @@
  1970.                  buffer[pos++] = *ptr;
  1971.                  col++;
  1972.                  break;
  1973. +            case BLACK:
  1974. +            case BLUE:
  1975. +            case GREEN:
  1976. +            case CYAN:
  1977. +            case RED:
  1978. +            case PURPLE:
  1979. +            case BROWN:
  1980. +            case WHITE:
  1981. +            case BRIGHT:
  1982. +                
  1983.              case UND_TOG:
  1984.              case ALL_OFF:
  1985.              case REV_TOG:
  1986. diff --unified --recursive --new-file ircii-2.8.2/source/sig.inc colirc/source/sig.inc
  1987. --- ircii-2.8.2/source/sig.inc    Wed Dec 31 16:00:00 1969
  1988. +++ colirc/source/sig.inc    Fri Jun 14 02:44:49 1996
  1989. @@ -0,0 +1 @@
  1990. +char *signals[] = { "ZERO", "1)", "SIGHUP", "2)", "SIGINT", "3)", "SIGQUIT", "4)", "SIGILL", "5)", "SIGTRAP", "6)", "SIGIOT", "7)", "SIGBUS", "8)", "SIGFPE", "9)", "SIGKILL", "10)", "SIGUSR1", "11)", "SIGSEGV", "12)", "SIGUSR2", "13)", "SIGPIPE", "14)", "SIGALRM", "15)", "SIGTERM", "17)", "SIGCHLD", "18)", "SIGCONT", "19)", "SIGSTOP", "20)", "SIGTSTP", "21)", "SIGTTIN", "22)", "SIGTTOU", "23)", "SIGURG", "24)", "SIGXCPU", "25)", "SIGXFSZ", "26)", "SIGVTALRM", "27)", "SIGPROF", "28)", "SIGWINCH", "29)", "SIGIO", "30)", "SIGPWR"};
  1991. diff --unified --recursive --new-file ircii-2.8.2/source/status.c colirc/source/status.c
  1992. --- ircii-2.8.2/source/status.c    Mon Apr  3 07:48:30 1995
  1993. +++ colirc/source/status.c    Tue Apr 16 15:56:56 1996
  1994. @@ -28,6 +28,7 @@
  1995.  #include "names.h"
  1996.  #include "ircaux.h"
  1997.  #include "translat.h"
  1998. +#include "color.h"
  1999.  
  2000.  extern    time_t    time();
  2001.  
  2002. @@ -603,7 +604,8 @@
  2003.              {
  2004.                  RJustifyPos = i;
  2005.              }
  2006. -            else if (buffer[i] != REV_TOG && buffer[i] != UND_TOG && buffer[i] != ALL_OFF && buffer[i] != BOLD_TOG)
  2007. +            else if (buffer[i] != REV_TOG && buffer[i] != UND_TOG && buffer[i] != ALL_OFF && buffer[i] != BOLD_TOG
  2008. +                 && (buffer[i] < BLACK || buffer[i] > WHITE) && buffer[i] != BRIGHT)
  2009.              {
  2010.                  if (RealPosition == CO)
  2011.                  {
  2012. @@ -662,7 +664,8 @@
  2013.              {
  2014.                  if (buffer[i] != window->status_line[i])
  2015.                      break;
  2016. -                if (buffer[i] != REV_TOG && buffer[i] != UND_TOG && buffer[i] != ALL_OFF && buffer[i] != BOLD_TOG)
  2017. +                if (buffer[i] != REV_TOG && buffer[i] != UND_TOG && buffer[i] != ALL_OFF && buffer[i] != BOLD_TOG
  2018. +                    && (buffer[i] < BLACK || buffer[i] > WHITE) && buffer[i] != BRIGHT)
  2019.                      RealPosition++;
  2020.              }
  2021.          }
  2022. @@ -1209,6 +1212,16 @@
  2023.          {
  2024.              switch(*s)
  2025.              {
  2026. +            case BLACK:
  2027. +            case BLUE:
  2028. +            case GREEN:
  2029. +            case CYAN:
  2030. +            case RED:
  2031. +            case PURPLE:
  2032. +            case BROWN:
  2033. +            case WHITE:
  2034. +            case BRIGHT:
  2035. +                
  2036.              case UND_TOG:
  2037.              case ALL_OFF:
  2038.              case REV_TOG:
  2039. diff --unified --recursive --new-file ircii-2.8.2/source/vars.c colirc/source/vars.c
  2040. --- ircii-2.8.2/source/vars.c    Wed Jan  4 22:39:56 1995
  2041. +++ colirc/source/vars.c    Tue Apr 16 15:56:56 1996
  2042. @@ -89,7 +89,8 @@
  2043.      { "CLOCK_24HOUR",        BOOL_TYPE_VAR,    DEFAULT_CLOCK_24HOUR, NULL, reset_clock, 0, 0 },
  2044.      { "CLOCK_ALARM",        STR_TYPE_VAR,    0, NULL, set_alarm, 0, 0 },
  2045.      { "CMDCHARS",            STR_TYPE_VAR,    0, NULL, NULL, 0, 0 },
  2046. -    { "COMMAND_MODE",        BOOL_TYPE_VAR,    DEFAULT_COMMAND_MODE, NULL, NULL, 0, 0 },
  2047. +    { "COLORLINE",                  BOOL_TYPE_VAR,  DEFAULT_COLORLINE, NULL, NULL, 0, 0 },
  2048. +           { "COMMAND_MODE",        BOOL_TYPE_VAR,    DEFAULT_COMMAND_MODE, NULL, NULL, 0, 0 },
  2049.      { "CONTINUED_LINE",        STR_TYPE_VAR,    0, NULL, set_continued_line, 0, 0 },
  2050.      { "DCC_BLOCK_SIZE",        INT_TYPE_VAR,    DEFAULT_DCC_BLOCK_SIZE, NULL, NULL, 0, 0 },
  2051.      { "DEBUG",            INT_TYPE_VAR,    0, NULL, NULL, 0, 0 },
  2052.